Tagged Questions
0
votes
1answer
29 views
Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
I am getting this message when I am trying to add a link to my menu:
I have created a custom post type and a custom taxonomy
<?php
/*
Plugin Name: Portfolio - Custom Post Type
Plugin ...
0
votes
1answer
103 views
How To Display A List Of CPT Posts In A Meta Box On Menus Page?
Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page?
Currently, it displays each CPT post inside it's own metabox, but I would ...
0
votes
1answer
68 views
Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
0
votes
1answer
28 views
Navigation menus not showing because of custom post type filter
I use this filter to show content from all custom post types in tags archive page
function tagFilter($query) {
$post_type = $_GET['type'];
if (is_tag()){
if (!$post_type) {
...
2
votes
1answer
76 views
wordpress custom post type remove duplicate menu item
I've registered a new content type with following -
register_post_type('news', array(
'labels' => array(
'name' => __( 'News'),
'singular_name' => __( 'News'),
...
0
votes
0answers
54 views
Automatically Insert Custom Post type to menu
I use the Custom Post Types plugin to add galleries to my website. I would like the galleries to automatically be inserted into my menu, So the menu will highlight the correct link when a gallery ...
0
votes
1answer
23 views
Custom Posttype and menu classes
I'm working on a custom theme for a website, and this website has a custom posttype 'Recipes'.
I added custom menu support and made a menu item which points to www.websitename.com/recipes
And ...
0
votes
1answer
49 views
Setting a Master Menu on a Custom Post Type
I am currently developing a site for a car dealership to list their inventory. I have setup the car up as a custom post type. Each post will have children (gallery, features, accessories, etc).
I ...
3
votes
0answers
180 views
Highlighting current item of custom post types' sub pages, listed by wp_list_pages
The below code is for listing the custom post types itself and its children in the sidebar.
The code works great but does not highlight the sub pages.
In functions.php:
...
3
votes
1answer
245 views
Extend walker class with custom post types
I'm using the walker class below, but I can't make it work with custom posts.
class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu {
function end_el(&$output, $item, $depth) {
...
0
votes
2answers
590 views
Get custom post type categories to show up in menus
I'm wondering how it's possible to add custom post type categories as an option to add as a navigation menu item.
What I have:
$portfolio_args = array(
'labels' => array(
'name' => ...
2
votes
0answers
212 views
Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it.
When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
0
votes
2answers
99 views
Creating “static” taxonomies to choose from, inside custom post type?
Alright, so i have a custom post type called Blurbs (translated, sort of). I want to add a static set of categories for the posts within Blurbs (i don't want the user to be able to create custom ...
-1
votes
1answer
74 views
Navigation won’t update to show full path to single post
I have a site with a custom post type “projects” and two taxonomies “clients” and “mediums”. For the navigation I’m using a custom nav walker (that extends Walker_Nav_Menu). This all works very well ...
1
vote
1answer
347 views
Add the current menu item CSS class to a custom page type archive in Wordpress menu
I've been reading a lot about this but couldn't find a solution.
Basically I'm trying to show a current menu item on a dynamic page that is created by a custom page type archive.
The default menu ...
1
vote
0answers
112 views
Custom Post Type Nav to Subpage
I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar.
I'm just curious if there's a simple way to move this out of ...
0
votes
1answer
545 views
highlight parent page menu item when in custom post type
in a website that I am building I have a portfolio custom post types (called: "project") to show my portfolio items.
The page that holds the loop of the custom post type is a custom page called ...
0
votes
2answers
152 views
Fake mark a menu item as current_page_item/active in Wordpress
I have a custom post type called Books and a page structure like this:
Home
Products & Services
- Services
- Products
-- Books
I am using Wordpress custom Menus for the 1st level navigation ...
1
vote
0answers
198 views
Single custom post type's menu ancestor/parent is Posts archive page
I have created a theme by copying twentyeleven default theme.
I have also installed a module Custom Post Type UI and created a custom post type called "Book".
I have gone to Settings -> Reading ...
0
votes
1answer
45 views
Show posts of parent in edit.php
I'm creating a post type for a site where there 4 main 'parent' pages in a custom post type. For the sake of argument the post type is 'schools'
the 4 (of many) parents are:
Cambridge
Teesside
...
1
vote
1answer
237 views
wp_nav_menu() mark current item ancestor of custom post type
This solution does almost what I want it to.
Only thing is, I have my menu set up as follows:
Menu item 1
Menu item 2
Custom post type 1
Custom post type 2
Custom post type 3
Menu item 3
...
0
votes
1answer
393 views
wp_list_pages not showing cpt as I expected
I have a CPT called 'vacancies' here is the code that registers it:
function register_cpt_vacancy() {
$args = array('labels' => $labels, 'hierarchical' => false, 'supports' => ...
0
votes
1answer
383 views
How can I create an automatic drop down menu with my tags?
I have another post type which isn't the default one.
I have four taxonomies attached to that post type.
And I have many tags attached to these taxonomies.
I would like to create a drop down menu ...
0
votes
1answer
736 views
show current item in custom menu, when inside a custom post type
I have a custom post type "product". I need to have its index accessible from the main menu, so i 've added a Custom Menu entry, simply stating "/works/" as url value. Problem is: if i'm looking at a ...
1
vote
1answer
72 views
Should I use custom menu, C.P.T. or theme options, or something else for this?
On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
0
votes
1answer
94 views
Custom post type post in custom menu
I created Custom post type named Regular pages. In that custom post type I created two pages About us and Services.
Is there any way to add that posts into my custom menu I created in ...
2
votes
1answer
340 views
Menu highlight custom post type archive
I am a WP beginner and hope if anyone can help me out.
I have recently installed WP 3.3.2 and Jigoshop 1.2 to see how things works if I can use WP as an ecommerce website.
The problem I am facing at ...
0
votes
2answers
536 views
Custom post type posts wont show in wp_nav_menu()
I have created a custom post type and registered it using this code
$labels = array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
);
$args = array(
'labels' => ...
1
vote
2answers
1k views
Custom Post Types don’t highlight in menu nav
Working on a theatrical events site. The structure requires several separate events areas, each with a top page listing events in the particular area, and corresponding individual events pages ...
1
vote
1answer
118 views
menu link to custom post_type?
is there a way to add a custom post_type (directors) link to a menu? I can add the individual director posts but not the link to all of them.
I'd like to avoid using custom links as this will be ...
1
vote
2answers
87 views
Querying both pages and posts
I am building an "advent calendar" for a client and they are wanting a combination of specific pages and custom posts appearing on the front page, in a specific order.
Things that need to be ...
1
vote
2answers
622 views
Using default WP menu functionality to link to custom post-type listing?
I'm completely starting over with a wordpress project that began a couple of weeks ago, and basically i'm totally discovering wordpress, so please bare with me.
I might be completely misunderstanding ...
0
votes
1answer
514 views
Custom Post Type & Custom Menu Walker to append custom class for active post types
I have an interesting problem I am trying to solve here regarding a custom nav menu.
Essentially, I have created a custom walker class for my nav menu and I have manually added a menu entry directing ...
0
votes
1answer
274 views
current_page_item and custom post type?
I have a page on my site that lists all posts for my custom post type 'Literature'.
However when I click on one of the posts, the highlighted active menu item changes to 'Blog'.
How do I assign ...
4
votes
2answers
3k views
Adding a Custom Post Type into the menu screen
I need a way of adding custom post types to the "Appearance-->Menus" option in Wordpress. i have created a custom post type with:
register_post_type('produksjoner',$args);
All examples I find just ...
5
votes
1answer
3k views
How to add custom post type archive page links to nav menu?
I cannot figure this out. There seems to be no checkbox or anything similar in function to add the newly created custom post type archive page into the menu.
Also the link must be active, if you are ...
0
votes
1answer
102 views
Menu System: View all by default
Been doing some digging and trying to see if there is a way to change the default list for Pages, Posts, etc in the WordPress menu area to default to "View all" instead of a truncated list. Any ideas? ...
0
votes
2answers
116 views
and custom post_types to custom menu
managed to create a custom menu area in the admin but now want to place 2 post types to it.
They already exist - questions & answers, but can't find a way to put their menu links into the custom ...
0
votes
1answer
91 views
Select side menu for registered taxonomies [closed]
I've registered a custom post type called "Work" with register_post_type and registered a custom taxonomy called "Clients" and added array('category', 'post_tag', 'client', 'page-attributes') to the ...
0
votes
1answer
6k views
Custom Post Types in the WordPress Navigation Menu
Hello can someone help me out by pointing me in the right direction as to where I can find out how to add a drop down menu to a theme with my custom post types stored within in, have been ...
0
votes
1answer
410 views
Menu that shows months and filters posts to show only posts from that month and shows posts as sub items
I've created a custom post type called news. On the page that shows all of my news posts i need to have a menu on the left side (sidebar) which shows months, i.e. October 2011, September 2011 and so ...
1
vote
3answers
1k views
How to add meta box to backend menu page
I need to add a meta box to the backend menu page, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones.
It will contain a ...
0
votes
1answer
664 views
WordPress menu with custom taxonomy
I'm looking for a scalable, best-practice way to do the following:
I need a menu to have a link to the homepage, a standard page, and a variable number of custom post type archives. Each archive must ...
1
vote
1answer
148 views
Review site custom post type structure
I build a review site with Wordpress. I created a custom post type called "Reviews", inside this, theres two taxonomy, one called "Genres" and one called "Types". Inside the Genres, i have a couple of ...
1
vote
1answer
117 views
Settings page above CPT page in admin section
I'm creating a plugin which generates a handfull or custom post types (CPT). I've create a top level menu in the admin left sidebar using add_menu_page(). I then added all CPTs to this menu using ...
3
votes
3answers
4k views
Query menu_order custom post types
I added 'supports' => 'page-attributes' to my custom post type, and now i have the meta box for page ordering.
When i use the argument 'sort_column' => 'menu_order' with get_pages() on my ...
3
votes
1answer
712 views
How can I get my Custom Post Types to appear in nav-menus.php 'Menu'?
I am having a bit of a problem with my custom post types. I can create them fine in my theme, but I cannot get them to show up in the 'Menu' screen ... at least not by default.
I have tried adding ...
2
votes
2answers
378 views
adding .current* tags to custom post types and taxonomies
TwentyTen adds some classes to custom menus, for instance:
#access #menu-item-262.current-menu-item, #access #menu-item-262.current-menu-ancestor
All the top-level links in my primary navigation ...
1
vote
1answer
757 views
How to get custom post type menu_name?
I'd like to show the post type of a post, you can do that with get_post_type(), but in my case the names are not pretty (for ex : p_project_plans). So instead I thought I'd show the asociated ...
0
votes
1answer
78 views
Prevent custom post type from showing up in custom menus
How do I do that?
Any custom post type I register shows up as a meta box on the menu page...

