'Read More' NOT showing up

  • xala

    #256

    Hello, first of all thanks for such a nice and handy theme.

    I have an issue with the Read More thing and although I have reviewed all posts related here, I cant find the solution. I hopw its a quite simple question.

    My slider displays the Excerpt followed by a ‘Read More’ button. Below, the rest of the entries in the home page show the excerpt but no button or even link to read the rest of the entry.

    The same happens when you clic ina Category Page (i.e. ‘News’ showing ony posts whithin this category). The summary or excerpt is displayed, but no Read More link or button is displayed.

    I tried activating and deactivating the ‘Show summaries’ option, writing or deleting exerpts and using the <more!>tag, but no success.

    Basically I didn’t modify the code so I don’t know how to apply this.

    What I need is very simple, in the home page and in Category pages just show a summary followed by a Read More button or link. How can this be done easily?

    Thanks!

    Admin

    Syahir Hakim

    #11749

    Firstly, the Read More button is only displayed in the slider. For all other posts displayed outside the slider, the link is the title of the post/page itself.

    Also, for automatic excerpts, a Continue Reading link is automatically added at the end of the excerpt.

    By default, WordPress doesn’t add a Read More link for manual excerpts, and this makes sense because it gives you total control of how you’d like your excerpt to be displayed with manual excerpts. However, I’ll be adding this feature in the next update, along with an option to enable/disable it.

    xala

    #11750

    Hello Syahir, thanks for your response. Youre very kind.

    The thing is that I find it is not very clear for the user that he needs to clic on the title to go further, and the excerpt stops suddenly, creating a strange effect of ‘uncomplete’ post. So, if I have to choose between publishing the complete post or showing an excerpt without a Read More link, basically I’d like to arrange an automatic ‘Continue Reading’ link to all posts -well, the more I could control that, the best-.

    You talk about ‘automatic excerpts’, where is this defined? Is there any line of code I can add to the Loop.php so I can get this Read More activated?

    I copy here the piece of code I think needs to be modified. If you could just inspire me 🙂

    Thanks dude

    <?php /* Post content */ ?>

    <div class=”entry-content clearfix”>

    <?php do_action(‘graphene_before_post_content’); ?>

    <?php if (!is_search() && !is_archive() && (!get_option(‘graphene_posts_show_excerpt’) || is_single() || is_page())) : ?>

    <?php the_content(__(‘Read the rest of this entry »’,’graphene’)); ?>

    <?php else : ?>

    <?php the_excerpt(); ?>

    <?php endif; ?>

    <?php wp_link_pages(array(‘before’ => __(‘<p>Pages: ‘,’graphene’), ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php do_action(‘graphene_after_post_content’); ?>

    </div>

    xala

    #11751

    Solved, I Removed some code and pasted like this:

    <?php /* Post content */ ?>

    <div class=”entry-content clearfix”>

    <?php do_action(‘graphene_before_post_content’); ?>

    <?php the_content(‘Sigue leyendo »’, TRUE,”); ?>

    <?php wp_link_pages(array(‘before’ => __(‘<p>Pages: ‘,’graphene’), ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php do_action(‘graphene_after_post_content’); ?>

    </div>

    Any ‘side effects’? I didn’t think about?

    Thanks anyway!

    Admin

    Syahir Hakim

    #11752

    You are basically discarding the usage of excerpt completely. This will cause you to always need to define the <!–more–> tag in all your posts, or the full posts will be displayed in all pages, including the home page and search pages.

    xala

    #11753

    Yes… and it also caused some pain to my page… strange things happening. Like for example the text previous to the Read More link just disapears when jumping to the whole article.

    I’ll step back, but then, what do you suggest? I remind you the Read More link didn’t appear after the Excerpt..

    Sorry to reopen the issue.

    Admin

    Syahir Hakim

    #11754

    Just to clarify: in the Edit Post screen, there’s a manual excerpt box where you can write your own excerpts. If you don’t write the manual excerpt, WordPress will automatically use the first 55 words as the excerpt, and this is used whenever the the_excerpt() function is called in the theme.

    Currently, WordPress only adds the Read More link to automatic excerpt and not manual excerpt. I’ve added the Read More link to manual excerpt as well for the theme, and will be available on the next update. You’d just have to wait.

    xala

    #11755

    Thanks Syahir, I was a little bit confused with that, thats ok now, working fine.

    rvm4

    #11756

    Great theme! i’m using the [catlist] short code to pull posts to specific pages but the excerpt doesn’t create a “Read more…” (The title of the post is clickable but that’s not intuitive enough, evidently).

    According to WP, the Read more can be added to Pages by adding this code to the loop:

    <?php

    global $more;

    $more = 0;

    ?>

    //The code must be inserted ahead of the call to the content

    <?php the_content(‘Continue Reading’); ?>

    BUT, no matter where I place it in the loop.php, it either displays the code on the page or it does nothing.

Viewing 9 posts - 1 through 9 (of 9 total)

  • You must be logged in to reply to this topic.