• Hello,

    Has anyone used Wp Tiles and Yuzo Related Posts together, my goal is to be able to show the views for each post, into the byline of WP Tiles for each post. Unfortunately WP Tiles has the option to call only Meta Keys via the HTML field in the options and recently Yuzo removed meta keys and works with separated table in the database where the values are stored.

    I was trying to identify where in the WP Tiles code I can put this code:
    <?php echo do_shortcode( “[yuzo_views]” ); ?>
    In order to have by default each tile displaying the views of the post in the Byline, but so far I am not able to locate the exact spot where this is happening in the php files.

    If anyone can provide some assistance on this one it would be much appreciated.

    Thank you in advance.

    A BIG THANK YOU to the author of the WP Tiles plugin, simply amazing work, can not wait for your future updates and plans for developing this amazing plugin ??

    • This topic was modified 7 years, 8 months ago by TheSickle.
    • This topic was modified 7 years, 8 months ago by TheSickle.
Viewing 1 replies (of 1 total)
  • Thread Starter TheSickle

    (@thesickle)

    This is my current progress:

    Editing this file : plugins/wp-tiles/src/WPTiles/WPTiles.php line 483

    I am able to add the following code below this line : // Only do the more expensive tags if needed”

    if ( strpos( $template, '%views%' ) !== false ) {
    $tags['%views%'] = get_Yuzo_Views();
    }

    This works to the point where if you use in the byline options %views% you get some results, unfortunately it is getting the same result for all posts. I think it reads the value from the first post it gets and then just copies it on all posts. Basically I need to understand how to get it take value for each post individually I tried using $post in the function or $post->ID, but still the same.

    Any ideas ? ??

Viewing 1 replies (of 1 total)
  • The topic ‘Display views in Byline for each post’ is closed to new replies.