How to Add A Rel Filter to All Links?
How to Add A Rel Filter to All Links?
How to Add A Rel Filter to All Links?
You should really learn how to use debug mode in WordPress. You should go and read this page: Debugging WordPress. The reason being is this line of code add_action( ‘wp_footer’, ‘print__my_inline_script’ ); If you had debug enabled, you would have seen a message like this Warning: call_user_func_array() expects parameter 1 to be a valid callback, … Read more
This all boils down to what needs to go into your functions.php and what not. This might just be personal preference here, but I would strongly advice you to not add elements from your loop to a function. Yes, you don’t like the repetition. Things like custom pagination functions, add these to your functions.php inside … Read more
That’s the purpose of admin area, isn’t it? 🙂 In WordPress Settings API is mostly responsible for creating and processing admin area pages. It’s not the friendliest part of core though to be honest. I would look around for notification-related plugins, your requirements seem generic enough for good chances of finding something fitting.
The reason for the syntax error is this typo: <? php It should be <?php Secondly, you should use the wp_enqueue_scripts hook instead of the wp_head hook. Check out the Codex for more info on the wp_enqueue_scripts hook.
Show the online status of the current post’s author
According to the wp_register_script() Codex the first parameter handle should have a unique name. If we look at the paramters of the wp_register_script() function it breaks down like this: wp_register_script( $handle, $src, $deps, $ver, $in_footer ); So your wp_register_script() function should also break down into a similar way: wp_register_script( ‘dropmenu1’, get_bloginfo(‘template_directory’) . ‘/js/jquery.dropmenu.js’, array(‘jquery’), ”, … Read more
You should enable WP_DEBUG mode, so that the white screen of death will give you a more useful error message. The white screen could be caused by a typo, but it looks ok to me. Does your host have simplexml_load_string()? If you don’t have the simple XML library, that could be why returning $setlink works, … Read more
Here is what I ended up with: Basically, I had the logic of the timing at the bottom wrong. Figuring out times and dates and what note is hard… add_action(‘init’, ‘delete_unclaimed_apps’); function delete_unclaimed_apps() { $availapps = get_posts(array( ‘post_type’ => ‘appointment’, ‘post_status’ => ‘publish’, ‘meta_query’ => array ( array( ‘key’ => ‘app_status’, ‘value’ => ‘available’, ), … Read more
if you can do it easy way ,so why not? you can use jquery to do it like: ( function( $ ) { function function_name() { $( ‘.gallery-caption’).css({display:’none’}); } function_name(); } )( jQuery );