Different post views for different category views

For styling archive index pages for a given category, target body.category-slug (where slug is the category slug) in CSS. For styling single blog posts that have a given category, assuming your post container is a div, target div.category-slug (where slug is the category slug) in CSS. For PHP operations, you can also use is_category( ‘slug’ … Read more

custom page templating in WordPress

Yes you’d need to add shortcodes to the functions.php file in your themes folder in order to use code like [box]Contained content blah blah[/box] in the WYSIWYG editor learn more about shortcodes and how to use them here http://codex.wordpress.org/Shortcode_API

Pages that don’t look like blog posts?

Try searching the WPORG Theme Repository for a Theme updated sometime since Fall 2010 or so. The Theme Review Guidelines require that Pages not display time-related content (such as Post Date/Time stamp), and that Pages not display “comments are closed” type messages on Pages with comments disabled. The Son of Blue Theme was last updated … Read more

Search results to be only posts & children of page ID

The only way I could figure it out was to build a list of ID’s to exclude like this: /* * Hide some pages from search results */ function SearchFilter($query) { if ($query->is_search) { $exclude=”18,20,12,22,132,76,81,78,84,91″; // Get all children of #18 $pages = get_pages(‘post_parent=18’); foreach($pages as $child) { $exclude .= “,” . $child->ID; } $query->set(‘post__not_in’, … Read more

Hide links to pages that dont have any content

I think you would need to implode(‘,’,$excluded_pages) for things to work, $excluded_pages = array(); $all_pages = get_pages(); foreach ( $all_pages as $the_page ) { if ( ” == $the_page->post_content ) { $excluded_pages[] = $the_page->ID; } } wp_list_pages( array( ‘exclude’ => implode(‘,’,$excluded_pages) ) ); EDIT

Separate URL for a specific page

Uhm, nice question. Some hacking is required. Use pretty-permalinks on company site On the domain of the founder, do a URL-rewrite from http://www.founder-domain1.com to http://www.companysite.com/page-founder1 On the company site, use a custom menu with a custom URL: Founder Page -> http://www.founder-domain1.com. (If you cannot use a custom menu, create a link in your template) Of … Read more

Page comes up blank using w3 total cache [closed]

You can turn off caching for your wp_list_comments template by placing define(‘DONOTCACHEPAGE’, true); at the top of the page. Other constants available on a per page or template basis are: define(‘DONOTCACHEDB’, true); Disables database caching for given page. define(‘DONOTMINIFY’, true); Disables minify for a given page. define(‘DONOTCDN’, true); Disables content delivery network for a given … Read more

Author page like wordpress answers

Take a look at Members List Plugin The Members Plugin allows you to create a post on your wordpress blog that lists all your wordpress members. When viewing the list of members you can also search through your members according to first name, last name, email address, URL or any other number of user meta … Read more