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 8297501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:26:27+00:00 2026-06-08T15:26:27+00:00

I am trying to show different result in 1 page with links example. i

  • 0

I am trying to show different result in 1 page with links example.
i have 4 items – example1, example2, example3, example4
each of the example has 3 or 4 pages of information depends on the type.

so if want to see the information of example3 type3 i would get that information on page Example3

I don’t want to make like 30 pages just for 4 items i want my Menu to look like

Main item Example

Sub Items Example1, Example2, Example3, Example4

and then put links in each sub page with the action thing like:
php?example=1&type=1 show example1 type1 else if example=1&type=2 show example1 type2 else if example=2&type=1 show example2 type1 and so on~

If any one can give me an example of how to do it please i would be great full.

if its possible with WordPress-plugin or any other way i would like to hear it.

Edit:
this is how i tried it and it works but i don’t know if action are good to use with WordPress website i have read on the web people says its not a good choice to use.

<?php
    $Example= $_GET['example'];
    if ($Example== 'example1')
    {
    echo "Hello example1";
    }
    if ($Example== 'example2')
    {
    echo "Hello example2";
    }
    if ($Example== 'example3')
    {
    echo "Hello example3";
    }
    if ($Example== 'example4')
    {
    echo "Hello example4";
    }           
</php>

And sorry if i made any typo’s

Thanks in advance,
Jawido

  • 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-08T15:26:28+00:00Added an answer on June 8, 2026 at 3:26 pm

    You will have to use the custom query to retrieve the information depending upon url query string. Use category to group the posts. For example, posts that falls under category of example1 can be retrieved on page by using

        <?php
    
    
    // The Query
    $the_query = new WP_Query( 'category_name=example1' );
    
    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
        echo '<li>';
        the_title();
        echo '</li>';
    endwhile;
    
    // Reset Post Data
    wp_reset_postdata();
    
    ?>
    

    You would want to go through the documentation for Wp_Query http://codex.wordpress.org/Class_Reference/WP_Query.

    Use get_post if you want to get the information of individual page.

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

Sidebar

Related Questions

I have two for each loops and I am trying to output something different
I am trying to load/show completely different set of values in a combobox(this one
I'm trying to make a code that will show two different images depending on
I'm trying to use the show and hide to display a different set of
I'm trying to show a list of links (in index.html) to text files in
I'm trying to show/hide items within a collection using a jQueryUI slider. The slider
I have a problem with a master page containing a asp:textbox that I'm trying
I am trying to figure out how to show two different states of a
I have been trying different solutions for this problem without success. Problem is this:
i am trying to show different notifications after some time interval but what happens

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.