Change order that the menu is generated with wp_list_pages
For ‘menu_order’ to work, you need to set the page order from the page edit screen. Are you setting orders for your pages?
For ‘menu_order’ to work, you need to set the page order from the page edit screen. Are you setting orders for your pages?
get_terms() does what you want. <?php $cities = get_terms( ‘state’, array( ‘child_of’ => 3 //ID of the state term //other args you want see the docs )); var_dump($cities); Not tested but it should work. GL
Why don’t you simply create a new sidebar… It will be clearer for you and will lighten your sidebar.php. Create a file in your theme folder : sidebar-thenameyouwant.php put your sidebar code there like this ex : <div id=”secondary”> <?php dynamic_sidebar( ‘sidebar-xyz’ ); ?> </div><!– #secondary .widget-area –> in your themes function.php… add : register_sidebar( … Read more
Seems that the article “How do I display read more buttons?” from http://themeshift.com/docs/read-more/ does the trick. You have to place the more button in the article and define yourself when the break should be.
I ended up using Really Simple Slideshow and manually integrating it into WordPress. Here is a link if this helps anyone: http://reallysimpleworks.com/slideshow/
So the answer was simple, though there may be a better way of dealing with it. In the custom_display.php of the custom theme display page. apply_filters ( ‘the_content’ , $theContentVar); This may not be best practice, but it works. Hope it helps someone else…
You have to copy the original wp-signup.php file, do the changes you need and use it in your theme as a custom template.
I usualy make a RSS feed in my template. Just copy the RSS feed you have in the wp-include/feed-rss2.php Step two is registering it instead of the original: // override feeds function own_rss( $for_comments ) { //it is in my theme/feed/rss2.php $rss_template = get_stylesheet_directory() . ‘/feed/rss2.php’; if( file_exists( $rss_template ) ) { load_template( $rss_template ); … Read more
In Taxonomy.php (Create on if have none) in your template folder You should have something similer to this code: (taxonomy are similer to archive.php but used for custom post type) <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!–=== TO GET THE TAXONOMY TITLE ===–> <h1><?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( … Read more
WordPress includes many js libraries in \wp-includes\js and in wp-admin\js. You can browse through them and choose which one you want, including jQuery tabs. You can use it in your theme by using this function, http://codex.wordpress.org/Function_Reference/wp_enqueue_script To figure out how to use the tabs, you would read about it here: http://jqueryui.com/demos/tabs/