Excluding CPT generated by a plugin from the loop

I’m afraid I don’t get the problem. The Loop usually only queries and displays post posts, and no custom posts. If your theme also lists your CPT, then you have to have a look at the query arguments. Apart from that: When you register_post_type, you have several options to choose from and set. I would … Read more

Automatically add child pages to menu

There are two possible approaches you can take. One would be to hook into whenever a Page is published and write code to update the menu accordingly, effectively making something similar to the built-in “add top level pages” functionality. You’d need to think carefully about what you would like to happen when the Page parent … Read more

jquery conflict with widget page

used $ within (function($){ /* code */ })(jQuery); 😀 <script type=”text/javascript”> (function($) { $(document).ready(function(){ $(‘#kopko’).change(function() { $(“#” + this.value).show().siblings().hide(); }); $(“#kopko”).change(); }); })(jQuery); </script>

Setting META tags such as description and title on programmatic post creation

When you use wp_insert_post to create the post, it will return the post id of the post you just created. The following code demonstrate how to add meta values: $my_post_data = array( ‘post_title’ => $collection, ‘post_type’ => ‘post’, ‘post_content’ => ‘<p style=”margin-bottom: 10px;”>’ . $content . ‘</p>’, ‘post_category’ => array( $term->term_id ), ‘post_author’ => 1, … Read more

Restore Category Base

This question was most likely down voted because the answer is in the plugin support forum. As stated by others in the comments, set default permalinks and save settings. Clear cache. Set permalink structure to what you want and save. Also, feel free to look in the database. where is permalink info stored in database?