Search Results
… arguments. Notice that the last three have a double underscore. cat category_name category__and category__in category__not_in The most basic thing you can do is pass …
Article: Wordpress Category Post List
… All the function does is to get a list of categories and then for each category get a list of the posts associated with that category. Not much really, but useful in some circumstances. function getCategoryPostList($args = array()) { if (is_string($args)) { …
Article: Extending The WordPress Page Walker
… I have looked at printing an intelligent list of WordPress pages in a previous blog post , but I wanted to revisit this topic and use the Walker … is an abstract class that sorts out a lot of the basic functionality needed to extract and render a hierarchical list of items from a …
Article: Custom Post Types In WordPress 3.0
… the Comments menu item. 'menu_position' => 30 menu_icon This is a URL to the image that will be used when your menu item is added to the … you might do something like the following. 'menu_icon' => WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . … rewrite Set this setting to false to prevent rewriting the URL of your custom content types. This setting can take an associative …
… Setting up a permalinks structure in Wordpress one of the things I normally do right after installing a blog, before event getting started on the templates. However, I always …
Article: Create A Page Of Posts In Wordpress
… A common practice when setting up a Wordpress blog might be to create a page and display posts in a certain … to do a lot so lets add some other functionality. Add the following lines to include everything you need to create a blank Wordpress page. …
… Wordpress widgets are a way to customise the sidebar of your blog very … instillation from version 2.2 onwards. With a widgetised theme all you need to do to change the menu system on your blog is drag and drop …
… 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', … 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', …
… bloginfo('name'); ?> In addition to the name tag the tags description, url, admin_email and version are also available. The Loop is used by …
Article: Wordpress Breadcrumbs
… $trail = array($post); // Initialise the output. $output = ''; $currentCategory = 0; if (is_front_page() == true && $options['printOnHome'] == … array_unshift($trail, $parent); } } elseif (is_category()) { // The current page is a category page. $trail = array(); $currentCategory = …