Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:23:39+00:00 2026-06-10T03:23:39+00:00

I have one problem, I have a one-page wordpress theme and I’d like to

  • 0

I have one problem, I have a one-page wordpress theme and I’d like to implement WP Menus inside it. I created a custom walker so I could create links like #post-slug or #page-slug instead of redirecting the user to another page, but the issue comes when I need to show the posts from the menu on the homepage.

Obviously I can’t show both pages and posts in one query so the only solution would be to create two queries, but still, how can I get the ids of the posts or pages that were added in Appearance > Menus? I need just the pages or the posts and not custom links or categories/etc.

Any help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:23:41+00:00Added an answer on June 10, 2026 at 3:23 am

    Try this

    <?php the_ID();
    

    Reference: http://codex.wordpress.org/Template_Tags/the_ID

    This function displays the ID of the post, to return the ID use get_the_ID().

    EDIT
    I’m fairly sure you need the wp_get_nav_menu_items( $menu, $args ); function.

    Reference: http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wordpress installation with some plugins and a custom theme. On one
My problem is I have one html table in jsp page .And i applied
I have a problem on my site's login page in IE7 browser. One of
i have one problem with handling list,i have three class named as UserInf,userData,userProcess,i created
I am currently developing a custom WordPress theme and ran into a problem. I
I have one problem in my home page design. Problem is that I don't
I have a problem with my wordpress theme, the functions.php file ouputs ome bad
I have a wordpress theme in which i have to create a page that
I have one problem with parsing *.docx document with OpenXML (C#). So, here's my
I have one problem with Javascript Nodes.I want to find out what button was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.