wordpress alchemy put custom metabox on certain page only

new WPAlchemy_MetaBox(array ( ‘id’ => ‘_custom_meta’, ‘title’ => ‘My Custom Meta’, ‘template’ => STYLESHEETPATH . ‘/custom/meta.php’, ‘exclude_template’ => ‘product.php’ )); the ‘exclude_template’ would work for excluding the one’s you didn’t want. new WPAlchemy_MetaBox(array ( ‘id’ => ‘_custom_meta’, ‘title’ => ‘My Custom Meta’, ‘template’ => STYLESHEETPATH . ‘/custom/meta.php’, ‘include_template’ => array(‘product.php’,’press.php’) // use an array for … Read more

Catagorized hierarchy menu for PAGES!

Such a widget does not exist. You say you don’t want to use parents, but that is my advise. Then just make a menu for it. If you know how you could make it yourself. A plus of this would be that you get the ‘category name’ of the parent in your permalink. An other … Read more

How to use the full page

In the theme you have choosen (twenty ten) – the main Container where you page / post is posted is the div: <div id=”content” role=”main”> <!– YOUR CONTENT IS PUBLISHED HERE –> </div> . This div has a maximum width of 640 pixels… if you want to change that you can do one of three … Read more

Need Help with Custom ModRewrite

This can be accomplished with WordPress’s internal rewrite system by using add_rewrite_rule and adding a query var. function wpse47506_rewrites_init(){ add_rewrite_rule( ‘about/case-studies/([^/]+)/?$’, ‘index.php?pagename=about/case-studies&clientname=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse47506_rewrites_init’ ); function wpse47506_query_vars( $query_vars ){ $query_vars[] = ‘clientname’; return $query_vars; } add_filter( ‘query_vars’, ‘wpse47506_query_vars’ ); This would go in your functions.php file, then visit the permalinks settings … Read more

Link to older links

Ok then… try this (hope i got your request right): REVISED <?php get_header(); query_posts( array( ‘posts_per_page’ => 5, ‘paged’ => ( get_query_var(‘paged’) ? get_query_var(‘paged’) : 1 ), )); // The Loop if (have_posts()){ while (have_posts()){ //Iterate the cursor on the next post the_post(); echo “<a class=”more-link” href=””; the_permalink(); echo “”><h1>”; the_title(); echo “</h1></a>”; echo “<div … Read more

post/page content

You need to apply the filter the_content e.g.: <?php echo apply_filters(‘the_content’,$home_page->post_content); ?> Also, you don’t need custom shortcodes for youtube, just put the URL in the content (but not a hyperlink), and it’ll be swapped out for a youtube player at runtime. No plugins or extra code needed thanks to oembed.

Update page breaks permalinks

I had tested it with all plugins off, and just as I was about to swap to 2011 I looked over all my custom taxonomies, which I coincidentally added around the 3.2.1 update. Lo and behold – I had foolishly added a ‘year’ taxonomy, changing that to ‘show-year’ seems to have licked it. Foolish mistake, … Read more