The function get_template_part was introduced in WordPress 3.0 and has been widely used as a means to call the component parts of “the_Loop” as they relate to the WordPress core post-format; but, you do not have to stop there. This functionality can be extended beyond its commonly found implementations in “the_Loop”.
WordPress has a lot of helper functions built into its core. Some of these functions are obvious and some are obscure … and almost every one of them can be easily put to use. A chat group I was in the other day lead me to looking for a set of these helper functions in … ∞
From time to time an interesting Five-Minute-FixTM comes along that sparks a great reason to add another WordPress Tips post. The idea for this tip started with this comment at BuyNowShop.com: … how to remove the website section when leaving a reply/comment … The solution may be obvious to some and can be readily derived … ∞
A standard function found in many themes is the comment_form. This is a core function of WordPress that produces a standard comment form generally consisting of text fields for the name and email address and a textarea for the actual comment. You will also find there are some standard text outputs produced by this function … ∞
This post will further expand on the possible uses of the_widget() as the basis of the code you can use to create a shortcode for a WordPress sidebar widget.
This article will show how to implement the wp_nav_menu() function using the wp_list_pages() function as a fallback.
In this third installment in the upgrade to wp_nav_menu() series of posts, I will be dealing with moving from wp_list_categories() to wp_nav_menu(). Let’s start with the same basic outline and list the default options for each function. We will start with wp_nav_menu() 1 first: We follow with wp_list_categories() 2, 3 which is often wrapped in … ∞
A few options to address and with possibly a minor edit to the theme, you can upgrade wp_list_pages() easily to wp_nav_menu() in your theme.
Upgrading from wp_page_menu() to wp_nav_menu() may be as easy as a simple find and replace operation.