How to use different jquery function of idangero swiper dependant on page template?

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

Create html from function

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

Update functions.php from WordPress dashboard

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.

jQuery HoverIntent is not a function

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

update_usermeta don’t work

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

Automatically delete posts based on query

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