Index template and Home page
Use home.php just as Sisir said. Copy the content from index.php to that file and you are all set. home.php tells wordpress that that page should be the homepage in a theme so no backend settings needs to be changed.
Use home.php just as Sisir said. Copy the content from index.php to that file and you are all set. home.php tells wordpress that that page should be the homepage in a theme so no backend settings needs to be changed.
I think this is because you use a reserved name: http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms Try changing in to something else like: register_taxonomy(‘portfolio_category’, ‘portfolio’, array(‘hierarchical’ => false, ‘label’ => ‘Category’,’query_var’ => true, ‘rewrite’ => true));
That’s because you overrule the query. You have to put the original info into the query_posts like so: <?php global $query_string; query_posts($query_string . ‘posts_per_page=10&paged=’.$paged); ?> For more info look here: http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note
Template pages can only be found in the main directory of a theme. If you want to add template pages NOT found in the theme’s main directory, you will need to use this method and you will need to use it for each template.
I’m not sure if it does exist, but it should. Try it and see. If it does not, you can use if statements within the single-$posttype.php in conjunction with is_page() (and the other conditional tags(http://codex.wordpress.org/Conditional_Tags), if needed) to duplicate that functionality.
If you’re trying to set a custom homepage or custom blog page template, you should go to Settings > Reading and select the page you created that uses your custom page template:
This is the answer 🙂 <?php if (in_category(array(‘News’, ‘Events’))) : ?>
WordPress handles registration with wp-signup.php (in the root of the installation). There are some hooks in place to allow for additional content (such as a signup header, or additional signup fields), but it doesn’t support theming in the same way that other WP pages do. BuddyPress is a pretty heavy-duty solution if all you want … Read more
All you need to do is enable custom menu’s by creating a functions.php in your current theme, and or if it already has a functions.php file, you just need to add this: add_theme_support( ‘menus’ ); And you will be able to add menus before making them live.
Sure, you can do something like this in your template code: <?php $migrate_date = mktime(0,0,0,1,1,2012); if ( get_the_date(‘U’) > date(‘U’, $migrate_date) ) { echo “<p>New</p>\n”; } else { echo “<p>Old</p>\n”; } ?>