What are the disadvantages of using template_redirect for restrictions
What are the disadvantages of using template_redirect for restrictions
What are the disadvantages of using template_redirect for restrictions
Why does my “Add New Post” page have an old post in it?
to grab the ACF data you will need to use $tag_tax_image = get_field(‘tag_taxonomy_image’, $post->ID); From there I recommend doing a var_dump($tag_tax_image); to figure out how to access the data you need.
To make a template that appears in the specific dropdown menu you’re referencing, you need to create a file in the theme (or child theme). Let’s say you’re creating “tpl-events.php”. Inside the file you’ll add comments at the top: <?php /* * Template Name: Events */ ?> The template will then appear in any post … Read more
The problem here is that implode will take an array of strings, and join them together using a glue parameter, such as commas. But by your own admission, $low_date is not an array of strings. It’s an array of objects! Objects are not strings. Here each row is an object, where you have only a … Read more
The post won’t use those templates because those aren’t intended for posts. They’re intended for the archive pages for those terms/categories/tags. What’s more, it doesn’t make sense for it to work that way as it introduces ambiguity. Case in point, if I have category-red.php and category-blue.php, which template gets loaded if I visit a post … Read more
Found my problem, was actually not even a plugin conflict but an optimisation operation that had broke the plugins! I added a couple days ago a script in functions.php that would “defer” all the scripts, which made important scripts being loaded after they were being executed. Thanks for the help.
Create link/button to create new post using specific template
The solution to this problem turned out to be: Changing the name of the custom post type from “events” (with the slug /events/) to “event” (with the slug /event/) Creating a page with a custom template with the slug /events/ to display the archives of the custom post type While this is technically not an … Read more
Custom WooCommerce template for product