New Landing How can we help? Themeforest Theme Support Neighborhood Portfolio URL rewrite HELP!

Tagged: ,

Viewing 15 posts - 1 through 15 (of 28 total)
  • #55243
    derrickkempf
    Member
    Post count: 12

    Hello.

    I have looked through the forums in search of finding answers to why following the knowledgebase article on URL rewrite (http://support.swiftideas.net/knowledgebase/portfolio-url-rewrite/#comment-135) did not change for me and have found now answers. I reset the permalinks structure to default and then set it to the custom setting and still isn’t working. I also looked into these topics for help:

    http://support.swiftideas.net/forums/topic/portfolio-url-slug/
    http://support.swiftideas.net/forums/topic/simple-portfolio-permalinks/
    http://support.swiftideas.net/forums/topic/portfolio-url-slug/

    I have not heard any feedback from support on these posts either, so I’m not sure what to do. The most important question for me is how this rewrite works when using a CHILD theme. I have got the rewrite to work a month ago, but now as I have been updating my theme to the latest version, I don’t want to go back and keep changing the rewrite for every theme update.

    So, any help would do.

    Thanks,
    Derrick

    #55244
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    Please explain me your desire portfolio URL structure so i can give quick solution .
    With Best Regards
    Swift Ideas

    #55245
    derrickkempf
    Member
    Post count: 12

    mydomain.com/portfolio/project-name

    I would also be interested in customizing the “Portfolio” section to be a different name. Maybe something like mydomain.com/work/project-name

    Thanks.

    #55247
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit functions.php at your child theme and put this code

    function portfolio_register() {  
    
        $labels = array(
            'name' => _x('Portfolio', 'post type general name', "swiftframework"),
            'singular_name' => _x('Portfolio Item', 'post type singular name', "swiftframework"),
            'add_new' => _x('Add New', 'portfolio item', "swiftframework"),
            'add_new_item' => __('Add New Portfolio Item', "swiftframework"),
            'edit_item' => __('Edit Portfolio Item', "swiftframework"),
            'new_item' => __('New Portfolio Item', "swiftframework"),
            'view_item' => __('View Portfolio Item', "swiftframework"),
            'search_items' => __('Search Portfolio', "swiftframework"),
            'not_found' =>  __('No portfolio items have been added yet', "swiftframework"),
            'not_found_in_trash' => __('Nothing found in Trash', "swiftframework"),
            'parent_item_colon' => ''
        );
    
        $args = array(  
            'labels' => $labels,  
            'public' => true,  
            'show_ui' => true,
            'show_in_menu' => true,
            'show_in_nav_menus' => false,
            'menu_icon' => 'dashicons-format-image',
           'rewrite' => array('slug' => 'work'), // Permalinks format you can change work to another
            'supports' => array('title', 'editor', 'thumbnail'),
            'has_archive' => true,
            'taxonomies' => array('portfolio-category')
           );  
      
        register_post_type( 'portfolio' , $args );  
    }  

    Thanks
    With Best Regards
    Swift Ideas

    #55610
    derrickkempf
    Member
    Post count: 12

    Okay, I tried that and it’s still not working. I put that in the functions.php file in the child theme.

    #55612
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Is your child theme activated ?
    Thanks
    With Best Regards
    Swift Ideas

    #55613
    derrickkempf
    Member
    Post count: 12

    Yeah it’s activiated and I’m working off of it.

    #55616
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am sure that it should work 100% . Please share wordpress admin login and website URL so i can check it to fix .

    Thanks
    With Best Regards
    Swift Ideas

    #55618
    derrickkempf
    Member
    Post count: 12
    This reply has been marked as private.
    #55619
    derrickkempf
    Member
    Post count: 12
    This reply has been marked as private.
    #55620
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please share website URL with login detail so i can check and fix the issue .
    Thanks

    #55621
    derrickkempf
    Member
    Post count: 12
    This reply has been marked as private.
    #55623
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    yes , first remove that function .
    Thanks

    #55624
    derrickkempf
    Member
    Post count: 12
    This reply has been marked as private.
    #55625
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have fixed your issue so please check and let me know your feedback . you can change portfolio slug work to another at /neighborhood-child/functions.php at line 28

    'rewrite' => array('slug' => 'work'), // Permalinks format you can change work to another

    Thanks 😀
    With Best Regards
    Swift Ideas

Viewing 15 posts - 1 through 15 (of 28 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register