Require()/Include() post template adding extra content

The problem is within the get_post function. After looking through the documentation for include() and require(), which includes the *_once() variations of the functions, the problem seemed to be that it was returning a Boolean on whether the template had been included/required or not without throwing an error. After changing how the template was requiring/including … Read more

Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode

The solution for now is : create a plugin re-creating the shortcode with the current page slug. Naming the page slug like the category slug. And manually add the category to dflip. Couldn’t find better so far. // Disable direct access defined(‘ABSPATH’) or die(‘No script kiddies please!’); // use page slug to call dflip book … Read more

Echo Extra Shortcode HTML to wp_foot

Usually, you don’t need to place the modal code in the bottom of the website. So you can just write it directly before or after your toggler. If you really want to place it in the bottom it is more complicated. Since we need to get attributes from the shortcode, you cannot call wp_footer hook … Read more