Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] page header template tag for comments?

Home Forums Support page header template tag for comments?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #398019
    drew

    I’ve been digging through the documentation and forum but can’t find anything about how to add a comments link that shows the number of comments to a page header as a template tag.

    Is there a way to do this?

    GeneratePress 1.4
    #398078
    Paul

    Tom showed me how to do this the other day, see this post 🙂

    https://generatepress.com/forums/topic/display-author-name-date-and-comment-number-in-a-page-header/

    My GeneratePress-based portfolio: http://www.pauldixonwebdesign.co.uk

    #398083
    drew

    Many thanks, I did find that post but it seems to group everything whereas I only need the single comment link with #. I wasn’t certain if the shortcode snippet was actually generating meta for author/date/comments or comments only. If the former, that seemed to be a potential confusion point for Google structured data.

    Is that the case or do you know if the shortcode only produces the comment meta?

    #398086
    Paul

    The shortcode only adds the comment link with number. Author and date are already available as tags – so you can pick and choose which you want to display.

    My GeneratePress-based portfolio: http://www.pauldixonwebdesign.co.uk

    #398088
    drew

    Great, many thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.