• Resolved nsolano

    (@nsolano)


    Hello WordPress geniuses!

    Upon recently switching from wordpress.com to www.ads-software.com (puravidaeh.ca), I noticed that my posts’ “more tags” are no longer appearing on my .org site’s category and tag pages (they appeared without issue on my .com site). I have searched around online for a solution but cannot seem to find one, even after trying a variety of css and php modifications. I even tried a few “automatic more tag” plugins, but none were what I was looking for. I have hundreds of posts (each already with a more tag inserted exactly where I want it for each individual post), so having to re-do the many hundreds of posts using the excerpt feature is what I am trying to avoid (especially since the content I have included above the “more tag” is individual to each post; I understand if the content was universal across posts that would be an easier problem to fix!). Since the more tag is accurately inserted for each post (I can see it there in each post’s editor), what modification do I need to make to my site to have the “more tag” take effect and only display the content above the tag with each post on my category and tag pages? Currently, the category and tag pages show the default excerpt (i.e., the first few lines of the post’s text).

    If it helps any, after a search query, the posts that appear in the search results show *part* of the text I inserted above the more tag, so it appears the search results pages are at least somewhat catching the “more tag” command and the problem is primarily within the category and tag pages.

    As a side note (and a second request), for the search results pages, the text I inserted above the “more tag” appears, but the photo gallery I also inserted above the “more tag” does not. Ideally, I would love to get my .org site to appear as my old .com one did, which is to show (both on search results pages and category/tag pages) the post title (automatically shown), a line of text (i.e., the line I included in the post editor above the “more tag”), an image gallery (i.e., the gallery I included in the post editor above the “more tag”), and a line of linked text (contained within the more tag, prompting readers to click, similar to a “read more” prompt).

    I am currently using the SELA theme.

    This is an example of one of my category pages showing default “more tag” info for each post: https://puravidaeh.ca/category/costa-rica-tour-discounts/manuel-antonio-tour-discounts/

    This is an example of a search results page showing one of the lines of text I include above the “more tag”, but failing to include the photo gallery and line of linked text: https://puravidaeh.ca/?s=canopy+tour

    Thank you, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Are you using the Content Options in Jetpack?

    https://jetpack.com/support/content-options/

    If you are, please set “Blog Displays” to “full post”. This should prevent automatic excerpts from being used on category and tag archives; the “more” tag will be used instead.

    For search archives, Sela is set to always use default excerpts.

    If you’d like to change this behavior, please:

    – create a child theme
    – make a copy of the content.php file from Sela in your child theme
    – search for the_excerpt() in the child theme file, and replace it with the_content()
    – then activate the child theme

    If you’re not familiar with child themes, please see these guides for details:

    https://codex.www.ads-software.com/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    If you are using any other plugins for excerpts, please disable them as they may interfere with the steps outlined above.

    • This reply was modified 7 years, 7 months ago by Gary Barrett. Reason: typos
    Thread Starter nsolano

    (@nsolano)

    @gary-barrett

    What a hero! Both worked like a charm.

    For the first fix (category and tag pages), I can’t believe I missed the content options–what an easy fix! That was all it took, and all content I included before/within the “more tag” (text/gallery/link) is showing without issue.

    For the second fix (search result pages), thank you so much! I have a child theme installed and had been fiddling with the content.php file but nothing seemed to work. Your suggestion to change “excerpt” to “content” as described in your response was perfect.

    Everything looks great–thanks again for your help, and the quick response! ??

    • This reply was modified 7 years, 7 months ago by nsolano. Reason: typo

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘More tag isn’t working’ is closed to new replies.