Create a separate widget for both Tags and TagsCloud?

we can create by category and we conver to custom category widget. There are a few plugins that are supposed to enable filtering tags for specific category. For example: TDO Tag Fixes and Sensitive Tags. //Getting Tags for a Specific Category <?php query_posts(‘cat=1&posts_per_page=-1’); if(have_posts()): while (have_posts()) : the_post(); $all_tag_objects = get_the_tags(); if($all_tag_objects){ foreach($all_tag_objects as $tag) … Read more

Jigoshop search taxonomy

You need to change the query settings before it is run. I’m assuming that you have a search.php page, but if not I’ll tell you where to put the code at the end. In search.php add this to the very top of the file (above the get_header() call) – $args = array( ‘posts_per_page’ => get_option(‘posts_per_page’), … Read more

how to set category name for a post

The post_category parameter has to be an array of IDs (int). http://codex.wordpress.org/Function_Reference/wp_insert_post#Parameters Try get_category_by_slug to get the ID, then use it. $category = get_category_by_slug( ‘your-category’ ); $new_post = array( … ‘post_category’ => array( $category->term_id ) ); Alternatively, look into wp_set_object_terms or wp_set_post_terms, using the $post_id of the post you’ve just created. If you need to … Read more

WordPress custom permalinks, pages are now 404

You need to setup your permalinks for menutype using custom rewrite rules. What you’ve done is apply the menutype prefix to everything, even though menutype isn’t relevant to everything, so things are being misinterpreted. You would need something similar to this: function custom_rewrite( $wp_rewrite ) { $feed_rules = array( ‘([^/]+)(/[0-9]+)?/?$’ => ‘index.php?menu_type=”. $wp_rewrite->preg_index(1).”&post_name=”. $wp_rewrite->preg_index(2) ); … Read more

Add HTML to Page Content

Indeed! It’s a filter called ‘the_content’, to which numerous other functions are hooked such as the one that turns WordPress into WordPress, oembeds, and the p tag wrapping echo apply_filter(‘the_content’,$data->the_content);

Share Button Like SuperUser

Unless i missunderstood what you meant those facebook, twitter, google buttons looks Simple. There are a lot of plugins that allow to pick the services you wish to disply and also the way that they are shown Check out (all sites – not just wordpress): addinto.com AddThis WordPress Plugins: Facebook, Twitter, Google Plus One social … Read more

Edit the Publish Widget Options

I think you should use the post_submitbox_misc_actions add_action( ‘post_submitbox_misc_actions’, ‘publish_in_frontpage’ ); function publish_in_frontpage($post) { $value = get_post_meta($post->ID, ‘_publish_in_frontpage’, true); echo ‘<div class=”misc-pub-section misc-pub-section-last”> <span id=”timestamp”>’ . ‘<label><input type=”checkbox”‘ . (!empty($value) ? ‘ checked=”checked” ‘ : null) . ‘value=”1″ name=”publish_in_frontpage” /> Publish to frontpage</label>’ .'</span></div>’; }

Need help with adding jQuery script to WP and calling script to page

i usally first deregister to avoid duplicates, then register it and enqueue it like so: function my_scripts_method() { wp_deregister_script( ‘jquery’ ); wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’); wp_enqueue_script( ‘jquery’ ); } add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’); Hope this helps, Sagive.