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
… a list of pages as options in a single select element. Walker_Category - Constructs a string containing an unordered HTML hierarchical list of categories. Walker_CategoryDropdown - Constructs a string containing a list of categories … items. This can be seen when using the WordPress menu system. Walker_Category_Checklist (found in wp-admin/includes/template.php) - Created …
Article: Custom Post Types In WordPress 3.0
… both be set by using the following. 'taxonomies' => array('post_tag', 'category') Taxonomies can also be registered using the … using the name as the reference. 'taxonomies' => array('post_tag', 'category', 'type') permalink_epmask This setting allows you to set your … be loaded) and that we are either looking at the home, archive or category page. This function receives the current WP_Query object, …
… It is also possible to create a permalink using the category slug by using the %category% option. /%category%/%postname%-%post_id%.html So the post above would become the …
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 category …
Wordpress widgets are a way to customise the sidebar of your blog very easily and where included with the default Wordpress 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 features and edit some simple …
… '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 = …