Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to easily display links to both Pages and Categories in the blog navigation header?

0
Posted

How to easily display links to both Pages and Categories in the blog navigation header?

0

This discussion assumes your current navigation is (or will be) using the Template Tag, wp_list_pages(), to display links to your Pages. The trick to displaying both Pages and Categories in a blog navigation header is to make the Categories accessible via a Page. To display a link to your News Category along with the other Pages in your navigation header, install a plugin such as Page Links To, create a Page called News, then in the Page Links To module, in the “Point to this URL:” field, enter the URL for the News category. Note: to determine the URL for the News Category, just visit that Category in your blog and copy the URL in your browser address bar. If you want the Pages in your navigation to appear in a particular order, use the Order field, in the Attributes module when you edit your Page and set that correctly for each Page, then with wp_list_pages(), use the ‘sort_column=menu_order’ parameter. Other plugins with similar solution to Page Links To: • http://svn.redalt.com/proj

0
10

This discussion assumes your current navigation is (or will be) using the Template Tag, wp_list_pages(), to display links to your Pages. The trick to displaying both Pages and Categories in a site navigation header is to make the Categories accessible via a Page. To display a link to your News Category along with the other Pages in your navigation header, install a Plugin such as Page Links To, then create a Page called News, then in the Page Links To module, in the “Point to this URL:” field, enter the URL for the News category. Note: to determine the URL for the News Category, just visit that Category in your site and copy the URL in your browser address bar. If you want the Pages in your navigation to appear in a particular order, use the Order field, in the Attributes module when you edit your Page and set that correctly for each Page, then with wp_list_pages(), use the ‘sort_column=menu_order’ parameter.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123