Conditional Tag Custom Querys?

You can use the have_posts function. For more information, visit The Loop <?php $loop1 = new WP_Query( array( ‘post_type’ => ‘profile’, ‘profile-type’ => ‘featured’, ‘posts_per_page’ => ‘-1’ ) ); $loop2 = new WP_Query( array( ‘post_type’ => ‘films’, ‘film-type’ => ‘featured’, ‘posts_per_page’ => ‘-1’ ) ); if($loop1->have_posts()) { while($loop1->have_posts()) { $loop1->the_post(); // content here } } … Read more

Editorial Process

Yes that’s the default behavior. When an “author” writes a post, he cannot publish it, only an “editor” (or higher) can do the publishing action. As for email notification, there are a couple of plugins for that, here are two : WP Status Notifier WP Pending Post Notifier

How to attach sidebar to shortcode’s output?

I’m still not sure exactly what you’re trying to do, but here’s one possibility if it’s to display something like this: PAGE CONTENT | SHORTCODE/POSTS LOOP | SIDEBAR Do you have control of the shortcode content? If so, you could update it so its output is wrapped in a <div id=”shortcodecontent”> –shortcode post-loop output– </div>. … Read more

Widget which displays thumbnails, but links to urls?

You could create your own widget that queries posts from a certain category then displays the_post_thumbnail in an unordered list linking to the post. Example widget (add to functions.php): <?php class c3m_thumbnail_posts extends WP_Widget { function c3m_thumbnail_posts() { $widget_ops = array( ‘classname’ => ‘thumbnail-posts’, ‘description’ => ‘Displays post thumbnails’ ); $control_ops = array( ‘id_base’ => … Read more

How to preload the entire site with javascript?

This is NOT a good idea. If you get that kind of behavior, then you didn’t properly code your carousel thing / CSS. You should hide the element that contains it, and reveal it in the js hook. But if you really want to go your way, here’s how: header.php: … <body <?php body_class(‘site-loading no-js’); … Read more

Change Category Page Display

Category pages or archives? If you’re a little more specific you will probably get multiple ideas, but in general, if you’ve got a loop you can use one of the two following functions: <?php the_excerpt(); ?> will show the custom or default excerpt for the post <?php the_content(‘Read More &raquo;’); ?> will show the full … Read more