Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Brecht

    (@brechtvds)

    It depends on your theme. It seems like your theme doesn’t display the “Read More” link if you used the excerpt field.

    Thread Starter gitika18

    (@gitika18)

    Hi Brecht, Thanks for your reply! I haven’t had problem so far with my theme. If you can see other posts, they show featured image and excerpts with ‘read more’ link to full post.

    I think the problem is- rest of my posts come under ‘posts’ but the new recipe post with WP Ultimate does not show up as ‘post’ but shows up as ‘recipe’ on my dashboard. And that is why the regular excerpt thing is not working with it. You can have a look at the other posts here- https://www.plantbasedhealthy.com

    My other posts also show categories, tags at the bottom and date and author on the top but this new recipe post doesn’t. I don’t know how to fix it.

    Thanks.

    Plugin Author Brecht

    (@brechtvds)

    You can try manually adding <!--more--> in the content where you want the Read More tag to appear. Make sure to enter this tag in the source editor, not the visual editor.

    Recipes are indeed custom post types and not normal posts, but this works fine in most themes.

    For the categories and author try editing your theme’s inc/template-tags.php file.
    On line 227 you have
    if ( 'post' !== get_post_type() )
    Change this to
    if ( 'post' !== get_post_type() && 'recipe' !== get_post_type() )

    In your theme’s content.php file on line 17 you have
    `<?php if ( ‘post’ == get_post_type() ) : ?>
    Change this to
    <?php if ( 'post' == get_post_type() || 'recipe' == get_post_type() ) : ?>

    And basically the same thing on line 47:
    <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>

    Thread Starter gitika18

    (@gitika18)

    Thanks for the codes! Will try those and see. However, I don’t know what source editor and visual editor are, I just see editor.

    Also, just to make sure, I add- ‘recipe’ == get_post_type() ) : ?> on the line 47? Where exactly? and preceded/followed by some syntax?

    I do not have much understanding of coding etc. so sorry if it sounds dumb ??

    Just to make sure, you mean by adding these codes, the recipe posts will be treated like rest of the posts for author and category and will accept the theme features/customization for author and category in the future as well?

    Am I right?

    Thank you very much for all your help!

    Plugin Author Brecht

    (@brechtvds)

    If you look at this screenshot you can see 2 parts: the visual and HTML editor. The <!--more--> tag needs to be added in HTML editor.

    Line 47 needs to look like this, afterwards:
    <?php if ( 'post' == get_post_type() || 'recipe' == get_post_type() ) : // Hide category and tag text for pages on Search ?>

    This should make the recipe posts look just like normal posts. Unfortunately you’ll lose the changes you made when you update the theme so you’ll have to make those again.

    Thread Starter gitika18

    (@gitika18)

    Thank you for clarifying about the code and other ques.! But, I don’t see any screenshots here ??

    Plugin Author Brecht

    (@brechtvds)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding 'read more' with link to full post after the excerpt’ is closed to new replies.