This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Read More Link no working in Post Loop

10 years ago · Last reply by Andrew Misplon 10 years ago

The read more link does not appear even though I checked the box in post loop. How do I fix this?

Also, how to I limit the amount of post the loop returns. I’ve set post per page to both 0 and 1 to try and get it to return only one, the latest. It still returns all of the ones in the category.

URL: http://www.goldenproductionservices.com/atpf/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Todd Sumrall 10 years, 9 months ago

    I resolved the Read more issue by putting a function in functions.php in my child theme. According to what I have read here at this discussion board, this was supposed to have been resolved in the post query widget. It was not resolved in mine. Anyhow, the code snippet that someone can put ion their functions.php in the CHILD THEME (so updates don’t override it) is this.

    function new_excerpt_more( $more ) {
    	return ' <a class="read-more" href="' . get_permalink( get_the_ID() ) . '">' . __( '...Read More', 'your-text-domain' ) . '</a>';
    }
    add_filter( 'excerpt_more', 'new_excerpt_more' );

    To put the Read More on a separate line so it is not appended to the end of the snippet here is the css.

    .read-more{
      	font-size:12px;
      	font-style: italic;
      	display:block;
      	clear:both;
      }
  2. Andrew Misplon Staff 10 years, 9 months ago

    Hi Todd

    Thanks for reaching out.

    Looking at your home page it appears you’ve been able to find a solution for both challenges. I’m not sure why these errors popped up. In local testing both the read more and posts per page setting are working.

    If you’d like us to dive in further, let me know.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread