1437 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
webdesignerart says

Hi guys i want to show menu of custom post type. But i can’t actually get what i want.

i set: ‘show_in_nav_menus’ => true, It appears in admin menu section.

But also want to list this post type items in page.

I register Menu name HEADER MENU . Header MENU have four Custom post type menus line which i added.

But now i want to show custom post type items in post type page.

I am using this snnipt to show custom post type list items: wp_list_pages(“title_li=&post_type=avanza_serv_page”);

It works but category and submenu list showing same not indenting or not submenu extra ul li.

so guys any idea to do this properly.

730 posts
  • Elite Author
  • Attended a Community Meetup
  • Has been a member for 4-5 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Exclusive Author
  • Most Wanted Bounty Winner
+2 more
mordauk says

Are you trying to show a menu with your custom post type in the admin or on the front end?

1437 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
webdesignerart says

Are you trying to show a menu with your custom post type in the admin or on the front end?

In Front-end.

730 posts
  • Elite Author
  • Attended a Community Meetup
  • Has been a member for 4-5 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Exclusive Author
  • Most Wanted Bounty Winner
+2 more
mordauk says

You should probably be using get_posts() or WP_Query() instead.

by
by
by
by
by
by