How do add_action and WP_Query
add_action/add_filter recive few arguments. Second one is callback. It’s done using constructor method.
add_action/add_filter recive few arguments. Second one is callback. It’s done using constructor method.
Plugins enqueuing jquery in head
Woocommerce is a fork (modified copy) of Jigoshop. You can run just one of those plugins, not both. The error is a result of declaring the same function declared two times, because this function was not changed in Woocommerce. The pages installed by Jigoshop were probably removed during the uninstall process. You will either find … Read more
Not your usual Class ‘Memcached’ not found error
Uninstall hook and uninstall.php file are two alternate ways to implement uninstall functionality, they are independent of each other. When uninstall_plugin() is called it checks for uninstall.php or hook (in this order). So if you are using file approach there is nothing special you need to do to call it. WordPress looks it’s up by … Read more
Add a filter for post_type_link, and change its value in a callback function. Sample code, not tested: add_filter( ‘post_type_link’, ‘simple_woo_urls’, 10, 2 ); function simple_woo_urls( $url, $post ) { if ( ‘product’ === $post->post_type ) return home_url( $post->post_name ); return $url; }
How to retrieve hashtaged tweets from a list of users and post to WordPress
As the wordpress standard you have to upload .zip file only… as you mentioned in your question .rar.. it won’t get upload… Try to convert in to the .zip format and try… surely it will get upload… after that if still you are getting error let me know.. hope it may help you…
Here you will find all you need to know. http://www.advancedcustomfields.com/resources/field-types/repeater/ One example <?php if(get_field(‘repeater_field_name’)): ?> <ul> <?php while(has_sub_field(‘repeater_field_name’)): ?> <li>sub_field_1 = <?php the_sub_field(‘sub_field_1’); ?>, sub_field_2 = <?php the_sub_field(‘sub_field_2’); ?>, etc</li> <?php endwhile; ?> </ul> <?php endif; ?>
Setup a cookie once a user referred by someone joins your website. Then once someone performs an action, check if he has that cookie and register it as a referral. You can use JavaScript to setup the cookie.