12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Apr 8, 2022

How to Add ID for Each Post in Easy Posts

Sridhar Katakam

Looking to add the post ID for each post in the output of an Oxygen‘s Easy Posts component?

At Templates → PHP, change

<div class='oxy-post'>

to

<div class='oxy-post' id="<?php the_ID(); ?>">
tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right