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

  • Home
  • SEARCH
  • 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 7647829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:33:36+00:00 2026-05-31T10:33:36+00:00

as a learner, and a new one to wordpress, i am trying to learn

  • 0

as a learner, and a new one to wordpress, i am trying to learn how to make the urls look pretty,

i have installed wordpress on my localhost, and url of wordpress appear as

localhost/wordpress/ads/?adtitle=product-name

localhost/wordpress/index.php?jobid=100&jobtitle=job-name

and i want to make it the URL looks like

localhost/wordpress/ads/your-product-name/

localhost/wordpress/100/job-name/

SO FOR SO NOW, i am trying to grab the concepts, and read different stackoverflow answer and google for it, following some tutorial and googled code, What i am able to produce so for is..

function myruleszfr(){ 
add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?p=12&food=$matches[1]&variety=$matches[2]','top');

}

add_filter( 'query_vars', 'zfr_query_vars' );
function zfr_query_vars( $query_vars )
{
    $query_vars[] = 'nutrition';
    return $query_vars;
}

     print_r(zfr_query_vars( $query_vars ));

as I am a learner, and i am trying to learn the process, can somebody guide me to the process that how should i modify the existing code to make my URL pretty? can some body guide me please?

  • 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-05-31T10:33:38+00:00Added an answer on May 31, 2026 at 10:33 am

    check out this one , its really simple and nice .

    http://wordpress.org/extend/plugins/pretty-link/

    Let me know if you have any query about it.

    Good luck 🙂

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

Sidebar

Related Questions

I'm trying to learn JavaFX and maybe create a few learner games. I always
i'm pretty new on regex, i have learned something by the way, but is
I make one action method for 2 activities (new input and edit), and there
I am a new learner to C++. I have a text file, its contents
I'm new to JSF and I'm trying to learn it because I saw the
Inheriting a new project today, trying to make hundreds of warnings go away, and
I am a learner and i have a problem data binding the dataset. Please
I am working in ASP .net 2.0. I am a learner. I have a
I have an admin page for a WordPress plugin that, thanks to the stackoverflow
I am Creating a new ASP.Net website not mvc, and willing to make the

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.