Make text bigger  Make text smaller  Toggle background color  Bookmark/Share

Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS TRICK: FUNCTION TO GET TAGS RELATED TO CATEGORY

First, here is a duty we have to pulp in your function.php file: duty get_category_tags($args) { tellurian $wpdb; $tags = $wpdb->get_results (" SELECT DISTINCT terms2.term_id as tag_id, terms2.name as tag_name, nothing as tag_link FROM wp_posts as p1 LEFT JOIN wp_term_relationships as r1 ON p1.ID = r1.object_ID LEFT JOIN wp_term_taxonomy as t1 ON r1.term_taxonomy_id = t1.term_taxonomy_id LEFT JOIN wp_terms as terms1 ON t1.term_id = terms1.term_id, wp_posts as p2 LEFT JOIN wp_term_relationships as r2 ON p2.ID = r2.object_ID LEFT JOIN wp_term_taxonomy as t2 ON r2.term_taxonomy_id = t2.term_taxonomy_id LEFT JOIN wp_terms as terms2 ON t2.term_id = terms2.term_id WHERE t1.taxonomy = ‘category’ AND p1.post_status = ‘publish’ AND terms1.term_id IN (".$args['categories'].") AND t2.taxonomy = ‘post_tag’ AND p2.post_status = ‘publish’ AND p1.ID = p2.ID ORDER by tag_name "); $count = 0; foreach ($tags as $tag) { $tags[$count]->tag_link = get_tag_link($tag->tag_id); $count++; } lapse $tags; } Once we have pasted a function, we can make use of it in your theme: $args = array(’categories’ => ‘12,13,14′); $tags = get_category_tags($args); Credits: WordPress Codex Looking for WordPress hosting? Try WP Web Host .

Original post: 
WordPress trick: duty to get tags associated to category


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS TIP: SAY GOODBYE TO PINGBACKS

First of it all, login to your phpmyadmin as well as name your WordPress database. Once done, click on a sql symbol to open a sql authority window. Paste a following sql authority in a sql window: UPDATE `wp_posts` SET ping_status=”closed”; That’s all! Now, pingbacks will not worry we anymore! Thanks to Ozh for this simple, though really engaging tip

5a615f3fb9wordpress-phpmyadmin-150x44 WordPress tip: Say goodbye to pingbacks

More here:
WordPress tip: Say goodbye to pingbacks


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS SHORTCODE: DISPLAY THE LOOP

Simply pulp this formula in your functions.php file. Or if we want, we can make use of it in a plugin.

Original post: 
WordPress shortcode: Display a loop


Get Auto Caffeinated Content for Your WordPress Blog



FORCE THE USE OF A SPECIFIC WORDPRESS THEME

Just pulp a following formula in a functions.php file.

See some-more here: 
Force a make make use of of of a specific WordPress theme


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS SECURITY: HIDE LOGIN ERROR MESSAGES

When we (or someone) try to login on your blog, though fails, WordPress arrangement a summary to let we know what happened. Sure, it might be utilitarian to you, though it is for certain additionally utilitarian to intensity blog hackers.

See strange here: 
WordPress security: Hide login blunder messages


Get Auto Caffeinated Content for Your WordPress Blog



ALLOW TITLE OVERWRITE ON YOUR WORDPRESS BLOG

Nothing tough with this recipe: Simply pulp th following formula on your single.php as well as page.php , where we wish a post/page pretension to be displayed.

Read a strange post:
Allow pretension overwrite on your WordPress blog


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS: FETCH FILE THROUGH PROXY

Turns out WP HTTP API http://codex.wordpress.org/HTTP_API (wrapper functions for all file-fetching) already has substitute support. Only need to conclude substitute server settings in wp-config.php (if no login indispensable only replace lines) define(’WP_PROXY_HOST’, ”); define(’WP_PROXY_PORT’, ”); define(’WP_PROXY_USERNAME’, ”); define(’WP_PROXY_PASSWORD’, ”); Thanks to Rarst for pity this really recipe with us! Looking for WordPress hosting? Try WP Web Host .

Continued here:
WordPress: Fetch record by proxy


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS HACK: CHOOSE THE SIDEBAR TO USE, POST BY POST

Simply open single.php * as well as find a call to a get_sidebar() function: <?php get_sidebar(); ?> Replace it by: <?php $sidebar = get_post_meta($post-> ID, “sidebar”, true); get_sidebar($sidebar); ?> Now when you’ll write a post, emanate a law margin name sidebar. As a value, give it a name of a sidebar we wish to include

Continued here: 
WordPress hack: Choose a sidebar to use, post by post


Get Auto Caffeinated Content for Your WordPress Blog



USING CRON TO SCHEDULE EVENTS IN YOUR WORDPRESS BLOG

Just pulp this square of formula in your functions.php file: if (!wp_next_scheduled(’my_task_hook’)) { wp_schedule_event( time(), ‘hourly’, ‘my_task_hook’ ); } add_action( ‘my_task_hook’, ‘my_task_function’ ); duty my_task_function() { wp_mail(’you@yoursite.com’, ‘Automatic email’, ‘Hello, this is an automatically scheduled email from WordPress.’); } On line 1, we combined an event, after verifying which an eventuality of a same name wasn’t already registered. All we have to do afterwards is to emanate a duty to do what we wish (In this example, a duty is called my_task_function() as well as it simply send a manikin email) as well as offshoot this duty to any WordPress event

Read some-more here:
Using Cron to report events in your WordPress blog


Get Auto Caffeinated Content for Your WordPress Blog

Pages