How to output a php code in any of the td blocks

Posted in: Newspaper
Post count: 28

Hi,

I have been trying to output a php code of wppostratings <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>

on the td_block_15 file but all code inside it starts with $buffy ..where do i place the above php code in that file so that it outputs the ratings ?

Post count: 20685

Hi,

You could edit the modules that from the block, not the block file itself this is just a container for the modules. Block 15 uses module MX4
https://forum.tagdiv.com/theme-blocks-modules/
https://www.screencast.com/t/T1PkFIS1BTWd
Try placing the code below the title in the module and check the results.

Thanks

Post count: 28

thank you Simion 🙂 It worked!

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