Showing pageviews in Flex Block metadata

Posted in: Newspaper
Post count: 58

Hi guys i was wondering if you could tell me how i can add the pageview counter to the flex blocks… i saw a few other people asking about this…and i am wondering if you can tell me which files to modify and if we can still do this in the newest version of the theme.

Post count: 35449

Hi,

If I understand correctly you want to replace the comment count with post view, unfortunately this can be achieve only with custom work and this is not covered by support policy -> https://forum.tagdiv.com/support-policy-2/ all I can do is to guide you to the flex files -> wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php

Thank you!

Post count: 58

Do these file changes this still apply?
https://forum.tagdiv.com/topic/post_views_count/

I tried pasting the code below to the td_flex_block_1, in the main files, but it triggered an error.
<?php echo $this ->get_views(); ?>

Any pointers?

Post count: 35449

Hi,

Unfortunately this can be done now only with custom work, sorry!

Thank you for your understanding!

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