Having trouble identify or determine what conditions that a page matches? Add the following Conditional Tags test snippet to your WordPress Theme’s template file, preferably your Theme’s template sidebar.php file: <?php $conditions = array( ‘is_home()’, ‘is_front_page()’, ‘$wp_query->is_posts_page’, ‘is_page()’, ‘is_single()’, ‘is_singular()’, ‘is_attachment()’, ‘is_search()’, ‘is_archive()’, ‘is_category()’, ‘is_tag()’, ‘is_tax()’, ‘is_author()’, ‘is_day()’, ‘is_month()’, ‘is_year()’, ‘is_time()’, ‘is_date()’, ‘is_paged()’, ‘is_comments_popup()’, ‘is_preview()’, [...]
Tag Archive for ‘wordpress’
23 Apr 2010
19 Apr 2010
WordPress: Display the contents of static page Posts page
By default, if you choose a static Page for Posts page to show your latest Posts, the original content of that Page will not be displayed. This is how you can display the content of the Page along with the latest Posts. Add the following lines to your WordPress Theme’s template index.php file, preferably before [...]