• Resolved bob cavanaugh

    (@bobdavcav)


    Hi all,
    Well my previous thread about this that I posted two weeks or so ago seems to have disappeared, so I’m starting a new one, and perhaps I’ll be more clear on what I want.
    My site is {link moved below}. Notice on the home page that I have two recent posts blocks, one for each of the categories. While not done yet, it looks like I’m going to have to put a heading that says something to the effect of “recent random thoughts” above that block’s list, and another heading that says something like “recent class assignments” above the other block. That’s going to be easy enough to do. The question is, how then do I get the recent posts to show up as headings? I would ideally like the main part of the page at heading level 1 which is what WP does by default, the manually inserted headings at level 2 also what the block editor does by default, then the posts at heading level 3. How do I get the block to display the recent posts at heading level 3?

    • This topic was modified 2 years, 3 months ago by Yui.
    • This topic was modified 2 years, 3 months ago by Yui. Reason: There is special field for link to the site

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    Links in topic content tend to be viewed as spam, it’s a semi-automated process. Use the “Link to the page you need help with:” field to link to your site to avoid having your topic be treated as spam.

    You could include h3 tags as an actual part of the title. This of course would impact all usage of post titles anywhere on your site, not just in latest posts blocks. You’d end up with h3 titles nested within h1 template headings. Probably bad for SEO.

    To have h3 tags in latest posts listings only, you’d need a custom block developed. The default block doesn’t provide for that kind of customization.

    Another option would be to have custom code that finds post titles within latest posts blocks and inserts the h3 tags dynamically. This could be done in PHP through “the_content” filter hook, or with JavaScript client side. Note that search bots will not see JavaScript insertions as they do not normally execute JavaScript.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    Can you take a look at radioinsight.com, and tell me how that site is set up? That’s about as close to how I want my site set up as I’m going to get. Pay close attention to the bottom of that page, where the blogs and commentary are listed. Notice that those are heading level 3, but seem to be able to be stuck in there own section. I also notice something similar at columbian.com, where you have the recent headlines, but then there are other headlines still on the homepage, that are still headings. How do I get my site to display the same way as either of those?

    Moderator bcworkz

    (@bcworkz)

    My guess would have been that section in radioinsight is a latest posts block with a simple heading section title. However, the HTML output doesn’t match. Next guess is it’s a page builder composition. I’ve no idea how they actually achieved it, but a heading and latest posts blocks would accomplish it in any case.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    Wait, you lost me there. You said in your previous post that the latest posts block doesn’t support headings, but then you say that your guess would have been a latest posts block with a heading section title. How would I do that? Good catch on the page builder, I ran WP Theme Detector on it and found it was using Bakery page builder. I’ll have to run it again on the Columbian’s site and see what they’re using, but now I’m curious on the latest posts block with section heading title.

    Moderator bcworkz

    (@bcworkz)

    The latest post block doesn’t have its own heading element, but you could separately use a heading block above it. You could group the two together if that would be useful.

    While it would involve some custom coding, you could create a block pattern so the two elements are always bound together.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    Hmm. I’ll consider that, I’ll also play around with some page builder plugins to see if that might be easier. Thanks for giving me a couple directions to look at. I’m glad I have a site to play around with things like this on now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘post headings in recent posts’ is closed to new replies.