Blog template: Never show full-width excerpts

Viewing 4 posts - 1 through 4 (of 4 total)
  • #16159
    faelnor
    Participant

    Apologies if this was already answered, I haven’t been able to find it. I’d like to display all my blog posts in the two-to-four column grid without having the first post taking the full width.

    For example, see here. I’d like both videos to show as thumbnailed, side-by-side blog posts instead of always having a wide one at the top. Is this what Pinboard calls a “teaser” post? Basically, I’d like to remove those teasers altogether from the blog template.

    “Full posts to display before grid” is already set to 0 in the options for the blog.
    Thank you.

    #16168
    faelnor
    Participant

    I have found out that if I set “Full posts to display before grid” to 0 for the Home Page (it is currently set to 1), my issue disappears.

    It would seem that there is a bug in Pinboard that applies that Home Page option to all blog pages, whether they are the Home Page or not. Can anyone confirm?

    #16169
    faelnor
    Participant

    Sorry for updating this so often. There is no bug in Pinboard, but WordPress apparently sets is_home() to TRUE on all my blog pages. I’ll try figuring out why.

    #16190
    faelnor
    Participant

    A final update for those who encounter the same issue because they were as foolish as I was. A piece of advice: learn how WordPress works!

    If you create various blogs within the same site, filtering the query by category (through the template or functions.php), don’t expect WordPress to magically understand that those are not “main” blogs. There is one and only home blog for WordPress, so it will always set is_home() to TRUE on those pages.

    I am currently not competent enough to know whether there was a different, more logical way of having several blogs using a single WordPress, but if you use the same technique, be aware that it’ll confuse WP as to where the loop is happening.

    Now, for my particular problem, I ended up changing:

    } elseif( is_home() && ! is_paged()  )
                            $offset = pinboard_get_option( 'home_page_excerpts' );
                    else
                            $offset = pinboard_get_option( 'archive_excerpts' );

    to :

    } elseif( is_home() && is_main_query() && ! is_paged()  )
                            $offset = pinboard_get_option( 'home_page_excerpts' );
                    else
                            $offset = pinboard_get_option( 'archive_excerpts' );

    in the function pinboard_is_teaser(), in my child theme.

    If anyone knows I’m being stupid, please tell me.

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

You must be logged in to reply to this topic.