WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Why Post marked as gallery shows full instead of summary?

[Resolved] Why Post marked as gallery shows full instead of summary?

  • loghchile
    Member

    @loghchile

    I am using WordPress 3.9.2 running Twenty Fourteen theme.
    In prior versions when I wrote a post I marked it as Gallery and in the front page of the blog shows only few lines and a Read More…
    Now it shows the full article, even marked as Gallery and also in Settings, Reading is For each article in a feed, show Summary.
    How do I get my posts to show only few lines?
    My site with this problem is http://solucom.cl/bitcoin/
    Thanks for your help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Michael
    Forum Moderator

    @alchymyth

    are you using the ‘more tag’ in your post(s)?

    the code of content-gallery.php (which is used to show the post with post-forma gallery) has the_content() which will show the full content unless you use the ‘more tag’.

    the Settings are only for RSS feeds.

    you will need to edit content-gallery.php in a child theme to change the_content() to the_excerpt() to have automatic short parts of the post wit a read-more.
    http://codex.wordpress.org/Function_Reference/the_excerpt

    loghchile
    Member

    @loghchile

    Thank you very much, alchymyth
    I did the change in the content-gallery.php and now is working exactly as is supposed to be… just show a few lines and has the […] meaning there is more to read in the page of the whole post.
    My only doubt is that there is no botton saying “Read More” with the link to the full page of the post…
    Is there a way to get that link at the end of the excerpt?
    (for those who do not know that they have to click on the title to read more)

    Michael
    Forum Moderator

    @alchymyth

    there is no botton saying “Read More”

    please review and apply:

    http://codex.wordpress.org/Function_Reference/the_excerpt#Make_the_.22read_more.22_link_to_the_post

    loghchile
    Member

    @loghchile

    about your question, alchymyth
    “are you using the ‘more tag’ in your post(s)?”
    honestly I do not know what you mean by that…
    I checked the whole post edit and in nowhere found something like that…
    whould you be so kind to clearify that?

    loghchile
    Member

    @loghchile

    Thanks a lot for your quick response, alchymyth
    I got it just as I wanted.
    Congratulations for your great assistance.
    That page you send me is full of very useful info. I needed it.

    Michael
    Forum Moderator

    @alchymyth

    loghchile
    Member

    @loghchile

    Very interesting, alchymyth
    Now I am very clear in how and when to use the Read More features.
    Thank you very much for all your help.

    loghchile
    Member

    @loghchile

    But the problem did not ended there…
    Now the home page shows a few lines and the Read More link but…
    When I click on the Read More, opens the page of the Post, with the only problem that there ALSO there is few lines and a Read More link that leads to the same page.
    In other words, I can not read the whole article.
    Please check it in http://solucom.cl/?p=166 where is sopoused to show the whole article
    Thanks for your help

    loghchile
    Member

    @loghchile

    This other blog, http://www.solucom.cl/aprenda/?p=55 where I did the same changes as to place the Read More link, it has the same problem…
    it shows the Read More link but also does that in the full page, not only in the home page, so is not possible to read the whole article.
    Thanks for your help

    Michael
    Forum Moderator

    @alchymyth

    my mistake – I forgot to consider that the content-gallery.php is also used for the single post.

    in content-gallery.php, change the edited code;
    change:

    the_excerpt();

    to:

    if( is_single() ) { the_content(); }
    else { the_excerpt(); }
    loghchile
    Member

    @loghchile

    Now work fine.
    Thank you very much.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] Why Post marked as gallery shows full instead of summary?’ is closed to new replies.