Adding tinymce to Custom Field boxes on Category edit page
Follow this tutorial TinyMCE in WordPress Plugins and you’ll get there.
Follow this tutorial TinyMCE in WordPress Plugins and you’ll get there.
<?php foreach((get_the_category()) as $category) { if ($category->category_parent == ‘7’) { echo ‘<a href=”‘ . get_category_link( $category->term_id ) . ‘” title=”‘ . sprintf(__( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.'</a> ‘; } } ?> All you need to do is replace 7 with whatever category you want to … Read more
The best solution here is to use the built-in filter for embed parameters: <?php function mytheme_embed_defaults( $defaults ) { return array( ‘width’ => 100, ‘height’ => 100 ); } add_filter( ’embed_defaults’, ‘mytheme_embed_defaults’ ); ?> This code can be added to your theme’s functions.php file and you can change the numbers to reflect the sizes that … Read more
This is the simplest answer I could find so far: $category = get_the_category(); echo $category[0]-> cat_name;
Use the Role Scoper plugin to give authors the manage_categories capability. Having said that, if you want to approve all posts before their published, give your users the contributor role – this’ll also mean you can approve new categories they’ve added before they appear on the site (by default, only categories that have published posts … Read more
As per the discussion in the comments, using . as a value for the “Category base” will send Apache into an infinite loop. Getting rid of the Category base in the URL is actually pretty tricky, just because of the way WordPress expects things to work. It you want to use a single character for … Read more
You should use get_categories. It supports an exclude argument.
What I would suggest in this situation is that you create a “CUSTOM QUERY” to query the posts. Set this custom query into a page, then use Appearance > Menu’s to add the page into your menu structure. I hope this helps.
Take a look at scribu’s post2post plugin which allows you to create many-to-many relationships between posts of all types.
If you change your single quote marks in to double quote marks it should work : $cat_id = get_cat_id(‘library’); wp_dropdown_categories(“hierarchical=1&parent=$cat_id”); but if you really want to make it more flexible you can phrase your arguments as an array: $args = array( ‘hierarchical’ => 1, ‘parent’ => get_cat_id(‘library’)); wp_dropdown_categories($args); and if you want to make it … Read more