Home>Support>Read More Link no working in Post Loop

Read More Link no working in Post Loop

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Todd Sumrall

    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. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More