[Resolved] Dynamic link and comment count for pages

Home Forums Support [Resolved] Dynamic link and comment count for pages

Home Forums Support Dynamic link and comment count for pages

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1680837
    Ali

    Hi I’m in the process of migrating my website to GP and testing out GP Premium 2.0.0-alpha.2 with GB

    Referencing the video where Leo shows how to add a dynamic comment link and count for Posts.

    Is it possible to show a dynamic comment link and count for Pages as well?

    Thank you

    #1681485
    David
    Staff
    Customer Support

    Hi there,

    Pages don’t by default have Comments neither do they appear in the Blog ( or archives ).

    So how are you adding comments links and including the pages in the blog ?

    #1681623
    Ali

    Hi David, the website has no blog posts and comprises of articles and reviews pages only. Comments are allowed on these pages and are fairly active.

    Looking for a way to dynamically indicate the comment count for each of the article pages.

    #1681664
    David
    Staff
    Customer Support

    That URL you provided isn’t using GeneratePress ?

    #1681718
    Ali

    That is correct. It was just an example showing that the comments are on pages and not posts.

    So can I dynamically show comment counts from a page?

    #1681995
    David
    Staff
    Customer Support

    I haven’t tested that but i cannot see any reason why it would not work.

    #1682391
    Ali

    Hi David, thank you for your help. Would you be able to guide me on how to accomplish that?

    When I look at the documentation I don’t see how I can reference a page (I only see options for Post). Is this functionality part of GB Pro?

    #1682395
    Ying
    Staff
    Customer Support

    Hi Ali,

    You just need to set page > the specific page in display rules as the element’s location.

    #1682420
    Ali

    Thank you Ying. That works!

    #1682452
    Ying
    Staff
    Customer Support

    Glad to hear that 🙂

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