0
votes
0answers
11 views

How to make pages metabox display all hierarchy in menu admin?

Running WP 3.9.1 I've got lots of pages and sub pages. When I get to create menu lots of sub pages doesn't display on the right level, but some do? This is how the pages metabox is displayed The ...
0
votes
0answers
14 views

Backend menu that shows pages with specific page template and their child pages

I've set up a menu in the backend that shows a list of pages that have a specific page template assigned to them. I've managed to do this using the code below, but I also want to display the child ...
2
votes
1answer
27 views

Creating a menu page in a Object Oriented developed plugin

I am trying for the first time to build a plugin for Wordpress following OOP way. I am having some problems while trying to create a submenu page using add_users_page() function. Here is a simple ...
0
votes
1answer
26 views

I can't add more pages to menu - menu delete pages

Two days ago I decided to add three more pages to the menu on my site. I already had like 140 pages in the menu, so this is something I know how to do. But I hadn't done it in some months, so maybe ...
0
votes
1answer
77 views

How to get current page nearest parent id?

I am trying to get current page nearest parent id not top-level. For example I have added page like this: Now If I am in Junior Design Award 2013 page I want to get his parent id 765 not top-level ...
0
votes
2answers
51 views

How to get main menu only with wp_nav_menu

I have created one menu and have some sub-menu but I don't want to display any sub-menu from my template. My Menu code: <?php wp_nav_menu( array('menu' => 'header-uk', 'menu_id' => 'nav', ...
1
vote
1answer
84 views

Set if condition with wp_nav_menu

I have created one new menu and add bellow code in footer.php to display my menu wp_nav_menu( array('menu' => 'footer-cn', 'menu_id' => 'nav', 'menu_class' => 'ft-nav' )); Currently I did ...
-1
votes
1answer
51 views

How to make posts appear under pages

I have created pages for my website, however when i create a new post, it is not assigned to any page and i am missing the option to place it under a certain page. For example i have a menu like Home ...
0
votes
0answers
56 views

Get Next/Previous (Sibling) Top Level Parent Page Id - Wordpress

Question: Is there any possibility to get next/previous page id in wp_nav_menu in wordpress. Example: I have navigation menu like this Menu_Item_1 (ID = 5) >SubMenu_Item_1-1 ...
0
votes
1answer
63 views

Auto add pages to primary menu with functions.php

Is it possible to have new pages automatically added to the primary menu via functions.php? This particular theme will be deployed on a special version of multisite, so the checkbox which is ...
0
votes
0answers
42 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
0answers
11 views

Site Live Database Operations issues

I have a working site on a staging server. The live site is working perfectly, but none of the database operations is working. It doesn't even fire the select query. I have pages in wp_posts tabel ...
1
vote
1answer
109 views

Add class active to static menu

I have a static main menu, but I'd like to add the class 'active' to the menu item in the nav if it is the page, or a child of that page. I imagine it to be a series of something like: if ( ...
0
votes
1answer
198 views

Change menu items URL

I create a single page website and use only anchors (#) on main menu items. Now, I need to include a second page on the website and keep the same menu. I'm using roots theme. Then, I'm building menu ...
0
votes
0answers
23 views

Menu of pages with an image

I'm getting really desperate and I need your help, I really tried and research and I couldn't find anything yet. I'm new at wordpress.. and I have this question, I hope you can help me... I want to ...
0
votes
0answers
60 views

Is a true MiniSite possible with WordPress?

I am creating a website that needs to have separate custom “portals” or “Sections” depending on which market you are in. Example situation: user lands on the home page. User looks at the top-level ...
-1
votes
1answer
20 views

Adding a page and contents many questions with answers

I want to add page in my website and in that page I want to add question and answer regularly. And these questions will be found on the the added page only. How to do it? Do I have to add a post ...
1
vote
2answers
67 views

list pages only from master parent

I have a menu on a page that shows the children of a parent page, however, if a sub page is clicked on the children only of the sub page shows in this nav. is it possible to haver the direct children ...
0
votes
1answer
58 views

Creating and populating custom nav menu (menu-item-position not working)

Im automatically creating pages with the below code, after that I create a custom menu and insert all the pages to this menu. $create_pages = array('Home', 'About', 'Contact'); // there will be more ...
1
vote
1answer
52 views

Create a Page via plugin

My problem is to show a list of products read from db tables. I know how to read them and I am able to produce the table, but only using a shortcode embedded in a page that I've created via WP. I ...
0
votes
2answers
50 views

How to create a menu item which is not a page

I have a few pages that contains technical tips. I would like to group these pages under the title "tips" in the menu bar, but I don't want to make the item "tips" clickable because it does not ...
0
votes
1answer
38 views

Breadcrumb how i can display page title with parent > child title with permalink ? any Idea

function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo 'Main'; else: echo "Home"; endif; echo " / "; if ( ...
0
votes
1answer
44 views

How to use page metadata while using wp_list_pages()?

I'm creating my pages links in wordpress, using wp_list_pages(). each link contains an <i> tag which displays retina icons. I want to set a different class for each link in order to display a ...
0
votes
0answers
38 views

adding pages to the menus in wordpress admin side

Hi i'm new to wordpress and just started to study it. i already got a css and index.php files for studying with practicals. i integrate it to my local wordpress and created files ...
0
votes
1answer
33 views

Making pages in a menu appear conditionally

How do I make a page (dis)appear conditionally in a menu? I had something like this in mind: if(condition) //show_page_in_menu I would prefer an answer that doesn't incorporate an external ...
2
votes
1answer
34 views

WordPress – site with 2 stylesheets and more…

I’m building a site that is broken up into two views (or sections): College and Corporate. » See it here When the College tab is active, the site will use college-styles.css (orange background) ...
0
votes
0answers
47 views

How i call multiple template in same menu

I want to call two template in same menu means when i click on tab one then page will open different template and when i click on tab two then page will open in different.I have three template ...
0
votes
1answer
112 views

How to make a page to not appear in the menu when created?

When one creates a page in the Dashboard (Pages -> Create new) it always appears in the menu and that is the way it should be. But now I want to create a page that does not appear in the menu at ...
0
votes
1answer
39 views

Add pages content to startpage through custom menu

I would like to be able to add page content onto the startpage (index.php). But only the pages that i've added in custom menu, and in that order too. I've been searching for a while now, but can't ...
0
votes
1answer
117 views

add_menu_page does not render the expected result

I'm trying to accomplish the simple task of adding a new page to the admin area but it seems that I just cannot wrap my mind around this simple function. Via codex, this is how I'm trying to add the ...
0
votes
1answer
96 views

Hard coded main navigation

Theme twentyeleven Version 1.5 HELP PLEASE I have received an answer from @Mayeenul Islam but this has not resolved my question, if I can't make the navigation show active that's not the end of ...
0
votes
0answers
408 views

How to add a class name to the ancestor <li> of a post?

I've asked this question before with a different Question Title over at Stackoverflow. At that time, I was not yet aware that a function of the theme is adding a class name called current-menu-item. ...
-1
votes
1answer
26 views

Some informations about the use of statics pages in WordPress

I am pretty new in WordPress world (I came from Joomla) and I have some questions about the use of static pages in WordPress. I have to use WordPress to implement a mainly static site (maybe in the ...
0
votes
1answer
333 views

How can I make a menu link visible only to admins (without plugins)?

I use a menu on top of my wordpress which shows 3 links. Main page Custom Page Custom Page Can I add a 4th link to my menu which is visible and accessible to admins only (without plugins)? This ...
1
vote
1answer
282 views

Displaying different page links on different pages

I have a wordpress site with 100+ pages. Now suppose 5 pages are related to page 1, and I want to show them in side bar as similar pages/related pages and other group of pages in other menu in ...
0
votes
3answers
515 views

Does is_child() exist in wp 3.5.1?

I'm trying to figure out how to get to a is_child() equivalent; I'd like to be able to target the parent page and it's children. How can this be achieved? My pseudo-code is... if ...
0
votes
1answer
125 views

How can I change the title of the Home link in the navigation bar?

I use Bones theme with a static front page. The header.php calls the bones_main_nav() function without parameters, while bones_main_nav() only calls the wp_nav_menu() function.
0
votes
1answer
1k views

Add child pages automatically to nav menu

I have built a custom menu in Wordpress that contains links to posts and pages. I am adding it to my header using this line of code: <?php wp_nav_menu( array( 'theme_location' => ...
0
votes
1answer
132 views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
0
votes
1answer
50 views

Redirect url in plugin to somewhere else?

I am using WP-SNAP Extended! v1.0.0 and I want to use this alphabetical menu as a sub-menu beneath my header. I managed to get the alphabetical menu in place, but now, if I click on a letter, it will ...
2
votes
1answer
76 views

How to highlight the current page in the nav menu?

I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated. For example: You can clearly see that I'm hovering over a ...
0
votes
2answers
82 views

How to add a page to header that is outside of WordPress?

I have a page on my site that is not a page in WordPress. How can I add it to the header? EDIT: The page is .php. It is outside of the theme structure.
0
votes
1answer
49 views

Site with all content on the front page

I would like to achieve the following: all the content is displayed on 1 page (the front page) the content is organized in sections the content for each section can be edited separately each section ...
3
votes
3answers
2k views

Change the_title() of a page dynamically

I'm developing a plugin that doesn't use a custom post type, but separate database tables. It's a plugin that displays a list of courses with links that lead to the different course detail pages, ...
2
votes
1answer
162 views

How do I approach removing menu items on the fly based on settings in my plugin?

I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
0
votes
1answer
116 views

Main menu navigation links and new pages

Sorry i'm pretty new on wp, i would like to add new menu links and site pages, to the main top menu bar. I'm using a third parties template, and i see the top.php file which contains the top menu ...
0
votes
1answer
175 views

Prevent menu from loading in a page template [duplicate]

Possible Duplicate: Remove navigation from header in custom page template Is there some way to remove wp_nav_menu in a page template? I can't find anything related to page templates other ...
-1
votes
1answer
140 views

my theme automatically adds new pages to menu

I have a theme that has a problem. When I add new page in it, it automatically adds two menu item of that page. Here is my code from functions.php <?php if ( function_exists('register_sidebar') ) ...
0
votes
2answers
619 views

wp_list_pages: only show subpages on the parent page?

I'm using wp_list_pages('title_li=') on my site. Some of my pages do have subpages, however I don't want to list them unitl I'm on an actual parent page that has subpages. So imagine my front-page: ...
1
vote
2answers
79 views

Does loading of sub pages in menu cause load to the server?

I am working on a wp site where I need to manage 500s of child pages for a single page such as About menu can have more child pages need to manage those child pages as sub menu and I have more than 5 ...