Is there a way to get N number of WYSIWYG editors in a custom post type?

Say your custom post type was called Properties, you would add the box to hold your additional tinyMCE editor using code similar to this: function register_meta_boxen() { add_meta_box(“wysiwyg-editor-2”, “Second Column”, “second_column_box”, “properties”, “normal”, “high”); } add_action(‘admin_menu’, ‘register_meta_boxen’); wysiwyg-editor-2 is the ID that the meta box will have applied to it, Second Column is the title … Read more

Get custom post_type’s archive URL

Hi @Silent: Turns out there is a function in WordPress 3.1 that does exactly what you want and it is named get_post_type_archive_link(); here’s how you’d call it (assuming a custom post type named ‘product’): <a href=”https://wordpress.stackexchange.com/questions/11531/<?php echo get_post_type_archive_link(“product’); ?>”>Products</a> Below is my prior answer before I discovered that WordPress did indeed have a function built-in … Read more

Mixing custom post type and taxonomy rewrite structures?

You can always override the template that will be called with the template_include or a related filter, but this might hide deeper problems with custom archives. As I understand it, you want to use the following structure: /glossary/ should be an archive page for all sumo-glossary-term posts /glossary/[letter]/ should be an archive page for posts … Read more

Allow member to have access to custom post type only. Permission to only edit their own posts

Use Justin Tadlock’s plugin “Members“. It gives you the ability to create new roles and edit existing roles, as well as add custom capabilities. All that work that you’d have to do can be taken down to a few clicks. I know you said in your comment on ZaMoose’s answer that you are ‘looking to … Read more

List all posts in custom post type by taxonomy

Try this $custom_terms = get_terms(‘custom_taxonomy’); foreach($custom_terms as $custom_term) { wp_reset_query(); $args = array(‘post_type’ => ‘custom_post_type’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘custom_taxonomy’, ‘field’ => ‘slug’, ‘terms’ => $custom_term->slug, ), ), ); $loop = new WP_Query($args); if($loop->have_posts()) { echo ‘<h2>’.$custom_term->name.'</h2>’; while($loop->have_posts()) : $loop->the_post(); echo ‘<a href=”‘.get_permalink().'”>’.get_the_title().'</a><br>’; endwhile; } } We get all the terms of a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)