I made a new page called "Logo" I would like all the posts under the category "Logo" to be posted to the logo page as well as the home page where all the other posts and categories.
How can I make a main nav button have all the links post for a specific category?
musnake
Member
Posted 3 years ago #
Hmm, you could add the code to the category listing directly into your theme where the pages are listed (it will look like a page link but it's a category link)
http://codex.wordpress.org/Function_Reference/get_category_link
http://codex.wordpress.org/Category_Templates
I need to add a permanent link called domain.com/Logo to this:
function linquist_navigation() {
global $linquist;
if ($linquist->option['navigation'] == 'nav') {
echo '<div id="nav" class="navright">
<li class="home"><a href="';
print get_option('home');
echo '" title="';
print linquist_homelabel();
echo '">';
print linquist_homelabel();
echo '';
print wp_list_pages('title_li=&depth1=&sort_column=menu_order');
echo '
</div>';
}
if ($linquist->option['navigation'] == 'nav2') {
echo '<div id="nav2"><li class="home"><a href="';
print get_option('home');
echo '" title="';
print linquist_homelabel();
echo '">';
print linquist_homelabel();
echo '';
print wp_list_pages('title_li=&depth1=&sort_column=menu_order');
echo '</div>';
}
if ($linquist->option['navigation'] == 'nav3') {
echo '<div id="nav3"><li class="home"><a href="';
print get_option('home');
echo '" title="';
print linquist_homelabel();
echo '">';
print linquist_homelabel();
echo '';
print wp_list_pages('title_li=&depth1=&sort_column=menu_order');
echo '</div>';
}
}
musnake
Member
Posted 3 years ago #
Hmm, that function calls wp_list_pages so you could use something like this: http://wordpress.org/extend/plugins/page2cat/