Check if page/post has any anchors that link to an image jpg/gif/png
What I’m aiming to do is add fancybox to a site I’m developing, but I only want to enqueue the JS/CSS etc if … Read more
If I understand is_single() correctly, it’s only supposed to return true when the current “post” (in a generic sense) is a literal post … Read more
I’m trying to dequeue some scripts from a plugin that I only need for the home page. For the home page, I’m using … Read more
Trying to run a custom script on a single page using is_page in functions.php not working at all. I have a function called … Read more
We know that we can check if the particular post has a term by using this code: has_term(‘term’, ‘taxonomy’, $post->ID )) { I … Read more
I’m trying to use tags of the single post, as meta keywords. I tried using this: <meta name=”keywords” content=”<?php the_tags(”,’,’,”);?>test<?php }?>”/> It works, … Read more
Is there a way to check if the current page is the home page from within the head? My style.php needs the number … Read more
Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be … Read more
How to Conditionally add controls on Theme Customizer panel. Conditional like is_page() or is_page_template() obviously does/will not work because the page is being … Read more
Since 3.3 we can enqueue scripts conditionally right in our shortcode functions, but when I tried to do this with some PHP class … Read more
What I’m aiming to do is add fancybox to a site I’m developing, but I only want to enqueue the JS/CSS etc if … Read more