Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Portfolio URL rewrite HELP!
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Portfolio URL rewrite HELP!
Tagged: slugs, URL rewrite
- This topic has 27 replies, 5 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Neighborhood
-
March 7, 2014 at 4:37 am #55243
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,
DerrickMarch 7, 2014 at 5:21 am #55244HI,
Please explain me your desire portfolio URL structure so i can give quick solution .
With Best Regards
Swift IdeasMarch 7, 2014 at 5:24 am #55245mydomain.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.
March 7, 2014 at 5:38 am #55247Hi,
Please open to edit functions.php at your child theme and put this codefunction 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 IdeasMarch 8, 2014 at 4:40 am #55610Okay, I tried that and it’s still not working. I put that in the functions.php file in the child theme.
March 8, 2014 at 4:45 am #55612Hi,
Is your child theme activated ?
Thanks
With Best Regards
Swift IdeasMarch 8, 2014 at 4:46 am #55613Yeah it’s activiated and I’m working off of it.
March 8, 2014 at 5:07 am #55616Hi,
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 IdeasMarch 8, 2014 at 5:12 am #55618This reply has been marked as private.March 8, 2014 at 5:13 am #55619This reply has been marked as private.March 8, 2014 at 5:17 am #55620Hi,
Please share website URL with login detail so i can check and fix the issue .
ThanksMarch 8, 2014 at 5:19 am #55621This reply has been marked as private.March 8, 2014 at 5:21 am #55623Hi,
yes , first remove that function .
ThanksMarch 8, 2014 at 5:33 am #55624This reply has been marked as private.March 8, 2014 at 5:56 am #55625Hi,
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 -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.