Insert image doesn’t pickup right size
Insert image doesn’t pickup right size
Insert image doesn’t pickup right size
Custom widgets in theme option page
I found that I was able to do this by using the Instagrate Pro plugin, which creates individual posts for every image it pulls in from Instagram. The standard loop then just pulls in those posts into the archive.
You will need to add a class to the correct menu item yourself. Here is a similar example which you can modify according to your needs: http://wpthemetutorial.com/2013/05/14/filtering-classes-on-wp_nav_menu/
To show custom post type on a page, try something like this //place code to display the title here if ( get_post_type( $post->ID ) == ‘posttypename’ ){ //place code to display fields here } else { //place code to display excerpt here }
I’m still eager to hear of an action that applies to this use case, but here’s a more brute-force approach, if nothing else turns up: // within My_Widget class definition private static $metaboxes_added = false; // to ensure we don’t add them more than once // inside My_Widget class constructor add_action( ‘init’, array( $this, ‘add_metaboxes’ … Read more
Building Menus with the latest posts included
Taxonomy.php is the default template that displays how custom taxonomies display in the browser. They aren’t how you create a new taxonomy. This is done by using the function register_taxonomy() in functions.php. WordPress has created a whole codex page on the topic available here. SmashingMag has a great tutorial on it as well (it’s actually … Read more
I’ve run into this problem with PageNavi before. My solution is to hijack the $wp_query variable temporarily and then reassign it after closing the loop. An exmaple: <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args=array( ‘post_type’=>’post’, ‘cat’ => 6, ‘posts_per_page’ => 5, ‘paged’=>$paged ); $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query($args); /* … Read more
While not impossible, juggling themes like that is quite fragile and rarely used out of special contexts (development, theme demo’s, etc). In your situation I would probably just consolidate it on one theme and conditionally output different stylesheet for the section of the site that needs it. It would not be hugely different in result, … Read more