Archived topic
star ratings in meta for each post
5 replies · Started by dassana on September 8, 2018
hi
how to enable this for each recipe post. i tried using elements option in generate press and it did not work. also added the code using code snippets plugin and did not work.
regards
dassana
Hi there,
Did you try inserting your code into the generate_after_entry_title hook in Elements?
Then you just need to target your recipe posts in the Display Rules.
If that doesn't work, can you share the code you're adding?
yes i did, but it shows the entire code in the post below the title.
Try putting it inside PHP tags:
<?php
// Your PHP in here
?>
Then make sure you check the "Execute PHP" tag.
thanks a lot tom for all the support and help. it worked.
You're welcome :)