How can I enable a TINYMCE rich text editor in the admin interface?
Something like this looks ot be what you are after http://wordpress.org/extend/plugins/rich-text-tags/
Something like this looks ot be what you are after http://wordpress.org/extend/plugins/rich-text-tags/
add ‘rewrite’ => array(‘slug’ => ‘portfolio-categories’), but be sure to remove (not sure why that’s there, it tries hides the slug yet tries to rename it to “products” at the same time?): ‘rewrite’ => array( ‘with_front’ => false, ‘slug’ => ‘products’ ), So it looks like this: function mysite_post_types() { register_post_type(‘portfolio’, array( ‘labels’ => array( … Read more
First, don’t use query_posts(). Just get rid of the call entirely. It will break things. Second: I tried adding the following before the query_posts ( function but it does nothing. Callbacks and add_action() calls belong in functions.php, not in the template file. If you’ve put it directly in home.php, remove it from there, and put … Read more
Role Scoper is a pretty good plugin to restrict category post access to users. It allows you to assign restrictions and roles to specific pages, posts or categories, which is what you said you need
If you want to use the function to output the code somewhere: function displayImage($currentPost) { // Show the featured icon only if current post is in “featured” category if ( in_category ( ‘featured’, $currentPost ) ) { $output=”<a href=”https://wordpress.stackexchange.com/questions/58811/<?php the_permalink(); ?>”> <span class=”featured_icon”> <img src=”<?php bloginfo(“template_directory’); ?>/images/featured_icon.png” /> </span> </a>’; } else { $output=”” }; … Read more
Yup. Use the add_meta_boxes_post to add a new category metabox that preserves the structure and while you’re at it, remove the default one, like this: add_action( ‘add_meta_boxes_post’, ‘fix_hierarchical_post_categories_metaboxes’, 10, 1 ); And here’s the callback: /* * This include provides an alternative post category metabox that sets the checked_ontop argument of wp_terms_checklist to false. * … Read more
you can achieve the same with out the duplication in two ways: create a custom taxonomy for condition (new,used) use a custom field for condition (new,used) both ways you only need to create each category only once and filter by condition.
Found it! Intuitive Category Checklist
http://codex.wordpress.org/Function_Reference/get_term_by example: <?php $link_id = 23; $link_category = get_term_by(‘id’,$link_id,’link_category’); var_dump($link_category); ?>
See the question / answer on this link. The answer have 2 different solutions, easy with default categories and taxonomies and also a solution with custom taxonomies only for media.