WordPress.org

Forums

Portfolio by BestWebSoft
[resolved] Change "portfolio" name in URL (4 posts)

  1. fresh-off
    Member
    Posted 2 years ago #

    Hello!
    How would I go about changing URL name from "portfolio" to something else like:

    example.com/something-else/my-project

    or

    example.com/projects/my-project

    Thanks!

    http://wordpress.org/extend/plugins/portfolio/

  2. Sage Brownell
    Member
    Posted 2 years ago #

    Hello,

    Go to your Dashboard > Pages. Hover over your portfolio page and click "quick edit." Then just change the slug to the new url :)

    Hope this helps!

  3. fresh-off
    Member
    Posted 2 years ago #

    hmmm...rats! That changes the slug for the current "index" page of all portfolio's... But unfortunately it does not change it for all of the content types.

    When I create a new "portfolio" content type ("project" in my case), it still has a URL of:

    example.com/portfolio/new-project

    Sorry Sage; now re-reading my OP, I dont think I was clear enough:

    I'd like to change the slugs for ALL created "portfolio" content types to something else, like "project", or "videos", etc.

    Any clue? Looking through the code, I think it has something to do with get_term but I'm not quite good enough at PHP to really figure it out!

  4. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    It is necessary to add changes to the plugin and do it after every update.

    Please find the string 128 in the 'portfolio.php' file of the plugin:

    'register_meta_box_cb' => 'prtfl_init_metaboxes',

    After this string add the string below:

    'rewrite' => array( 'slug' => 'projects' ),

    Instead of 'projects' word you can write any necessary word.

    Best regards,
    Oksana

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Portfolio by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.