I added a taxonomy and custom post type, but for some reason, my taxonomy isn’t showing up when I add a new marker. I half expected it to be...
Under each comment there is a link called ‘Reply’. I want to add a class to this link. It’s default class is comment-reply-link. How can I do so? I...
I don’t know how to force this function to run as the last function after all other save things from WP are executed. This is my current code in...
I’m trying to echo the post ID in a post Javascript and not having any luck. var post_id = '123'; // works fine var post_id = '<?php global $post;...
This question already has an answer here: Do I require the use of nonce? (1 answer) Closed 5 years ago. I am trying to learn, how to use Ajax...
I’m trying to create a taxonomy that is sort of hidden.. meaning i intend to adjust the metabox so that you can only select a unique term from 3...
This seems like a very simple question. I’m looking for something like sub-page.php or page-child.php where I can do some different things on the child pages of my theme....
I’m trying to disable all functionality related to pingbacks/trackbacks in WordPress and so far I have this: add_action( 'pre_ping', 'disable_pingback' ); function disable_pingback( &$links ) { foreach ( $links...
I’m writing unit tests using PHPUnit and WP_UnitTestCase, and using Selenium for front-end testing. My Selenium test classes merrily click around my pages without trouble. What would be truly...
Here’s my configuration: WordPress multisite installation on a subdirectory WordPress version is 4.7 Let’s say my WordPress site is example.com/mywebsite My WordPress site has published posts The issue I...