How to set and use global variables? Or why not to use them at all
UPDATE: My original question has been solved, but this is turning into a valid discussion about why not to use global variables, so … Read more
UPDATE: My original question has been solved, but this is turning into a valid discussion about why not to use global variables, so … Read more
I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how … Read more
In my child theme’s archive.php, I have the following code for displaying the title of my archive pages: <?php the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ … Read more
I’m building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I … Read more
I have set the blog to be a different page other than the home page. I want to have a link from single.php … Read more
The problem I am having is that the get_template_directory_uri is pointing to the parent theme like site/wp-content/themes/twentythirteen/myGallery/gallery_functions_include.php but I want it to point … Read more
My problem is when on the main plugin file I include a PHP file something like this: include(WP_PLUGIN_URL . ‘/wordpress-group-buying/ipn/paypal-ipn.php’); // or include_once(WP_PLUGIN_URL … Read more
I have the following code in my theme’s archive.php: <?php the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ ); ?> This gives me titles like “Category: Russia”, … Read more
My understanding is that site_url() returns the location where the WordPress core files are. If my blog is hosted at http://example.com/blog then site_url() … Read more
Customer asks if a specific carousel plugin he uses can be widgetized. That means I should create a widget inside functions.php which calls … Read more