WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Change "portfolio" name in URL

[Resolved] Change "portfolio" name in URL

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sage Brownell
    Participant

    @sage-chara

    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!

    fresh-off
    Member

    @fresh-off

    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!

    Plugin Author bestwebsoft
    Participant

    @bestwebsoft

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Change "portfolio" name in URL’ is closed to new replies.