Support » Plugin: Content Views - Post Grid & List for WordPress » Adding # element ID on links

  • Hi, this is a very nice plug-in.

    I just have one question. Is there a way to include an anchor tag with element ID (“#video”) to the link it produces so that when clicked, it goes directly or scroll to specific element of the page?

    I am making a grid page to show all my post with videos. Unfortunately, the video is placed at the bottom of the page so it is not visible to the visitors right away. They still need to scroll down to the bottom of the page to view it. This is the reason why I want to include anchor tag to directly point visitor’s browser to that section where video is located.

    Thanks in advance.

    • This topic was modified 3 months, 1 week ago by  bodabas.
Viewing 1 replies (of 1 total)
  • Plugin Author Content Views


    Hi there,
    Yes that is possible with custom PHP code, by adding WordPress filter to pt_cv_field_href, with 2 parameters (the href, the current post).
    It requires your PHP knowledge to achieve that.

    Best regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.