Modify post content to insert text after h2
This code snippet filters the_content(), uses regex to find the first h2 and insert content from an ACF custom field named affiliate_text from the options page.
This code snippet filters the_content(), uses regex to find the first h2 and insert content from an ACF custom field named affiliate_text from the options page.
The outcome of this snippet will be an image with the size “square” (assuming you have this in your functions.php) followed by the nav item title....
The follow returns an accessible navigation for WordPress that includes next/previous pagination links as well as the appropriate numbered links in-between for easier navigation. Once styled,...
I always find myself constantly googling for this answer (why don’t I put it in my starter theme?). Therefore, here’s a function that gets rid of...