Home › Forums › Basel support forum › Blog and Portfolio Permalink Structure
Blog and Portfolio Permalink Structure
- This topic has 21 replies, 2 voices, and was last updated 2 years, 11 months ago by Elise Noromit.
-
AuthorPosts
-
October 4, 2021 at 4:12 am #322839
ryadigitalParticipantHow do I setup my permalink structure for the blog and portfolio to be the following:
mywebsite.com/blog/blog-post-title
mywebsite.com/portfolio/portfolio-post-titleOctober 4, 2021 at 10:14 pm #323044
Elise NoromitMemberHello,
The permalinks are configured in the Dashboard > Settings > Permalink. This is WordPress functionality and we do not have instructions on how to configure them. You will find a few pre-defined options to chose from.
If you have any questions please feel free to contact us.
Best Regards
October 4, 2021 at 10:19 pm #323047
ryadigitalParticipantHi Elise,
This is a not a solution to the issue. I purchased the theme to receive the support(3rd purchase) so that I could achieve the aforementioned permalink structure.
October 4, 2021 at 10:21 pm #323048
ryadigitalParticipantThe website Plus Packaging uses the basel theme for wordpress. It has the desired permalink structure that I am trying to implement.
Blog Post
https://www.pluspackaging.com/blog/business/7-incredibly-clever-packaging-ideas-for-food/Portfolio Post
https://www.pluspackaging.com/portfolio/tissue-paper/caracas-bistro/October 5, 2021 at 1:22 pm #323188
Elise NoromitMemberHello,
Please provide your site URLs, the URLs you have provided are default URLS.
Best Regards
October 10, 2021 at 3:40 pm #324207
ryadigitalParticipantI included the site URLs in the private content message body.
October 11, 2021 at 11:28 pm #324450
Elise NoromitMemberHello,
You can set Portfolio project URL slug and Portfolio category URL slug in the Theme Settings > Portfolio.
The Blog post and categories URLs are configured in the Dashboard > Settings > Permalinks
If you have any questions please feel free to contact us.
Best Regards
October 13, 2021 at 2:56 am #324765
ryadigitalParticipantElise,
If I use the settings > permalinks to try and achieve my desired URL structure and use “/blog” then my Portfolio pages will not work as I requested.
These are not solutions to my issue.
I would like to have all my posts be the following URL structure:
/blog/name-of-my-blogpostFor my portfolio posts, I would like:
/portfolio/my-portfolio-post-titleThe example website I posted above (plus packaging) is what I am looking to do for my client.
October 13, 2021 at 9:09 am #324858
Elise NoromitMemberHello,
Please try to write the permalinks in this way: https://take.ms/U8juk
If you have any questions please feel free to contact us.
Best Regards
October 17, 2021 at 3:50 pm #325798
ryadigitalParticipantElise,
The screenshot you provide is the method I already tried. This does not work as the portfolio post URLS will contain “/blog”.
I do not mean to be rude but I purchased the theme again to gain technical support. The solutions you are providing are not thought out and we are running around in circles. Can we please move this ticket to a senior engineer.
October 18, 2021 at 7:35 am #325893
Elise NoromitMemberHello,
You need to configure the permalinks in this way:
https://take.ms/Cvt6v
https://take.ms/ujFCHThen find this file:
wp-content/plugins/basel-post-types/basel-post-types.php
and find and replace this line:'rewrite' => array('slug' => $portfolio_slug),
for this line:
'rewrite' => array('slug' => $portfolio_slug),
If you have any questions please feel free to contact us.
Best Regards
October 19, 2021 at 11:31 pm #326423
ryadigitalParticipantHi the code you provided above to find and replace is the same on both lines. Is that a typo?
October 19, 2021 at 11:46 pm #326438
ryadigitalParticipantAttachments:
You must be logged in to view attached files.October 20, 2021 at 9:22 am #326535
Elise NoromitMemberHello,
Sorry for the mistake.
Please replace the line:
'rewrite' => array('slug' => $portfolio_slug),
for this one:
'rewrite' => array('slug' => $portfolio_slug,'with_front' => false),
And check the issue.
Best Regards
October 20, 2021 at 6:19 pm #326661
ryadigitalParticipantOk I will try that. Can you provide an example of which values I should use for the portfolio project URL and category slugs?
Should the value be “/portfolio” or “portfolio” without the forward slash (screenshot above).
Can you provide a screenshot of how the category and project slug should be formatted.
October 21, 2021 at 7:52 am #326753
Elise NoromitMemberHello,
Please leave this field empty: https://monosnap.com/file/l7bFrbhQeyRdBXJo3H0rlm5YRKvnC8
If you have any questions please feel free to contact us.
Best Regards
November 2, 2021 at 11:18 pm #329296
ryadigitalParticipantThis solution did not work. It broke my portfolio pages!
To view my portfolio overview page I have to visit my website.com/blog/portfolio
The portfolio pages redirect to 404 now.
November 3, 2021 at 10:04 am #329358
Elise NoromitMemberHello,
Please save Permalinks after changes and check how it works.
If you have any questions please feel free to contact us.
Best Regards
November 10, 2021 at 3:55 pm #330867
ryadigitalParticipantDo I have to adjust the second line that handles the taxonomy category as well ($portfolio_cat_slug)?
/**
* Create a taxonomy category for portfolio
*
* @uses Inserts new taxonomy object into the list
* @uses Adds query vars
*
* @param string Name of taxonomy object
* @param array|string Name of the object type for the taxonomy object.
* @param array|string Taxonomy arguments
* @return null|WP_Error WP_Error if errors, otherwise null.
*/Line 524
rewrite’ => array(‘slug’ => $portfolio_cat_slug, ‘with_front’ => false ),November 11, 2021 at 10:22 am #331061
Elise NoromitMemberHello,
Please insert the FTP credentials into the Private content below the message area. Our developers would check deeper.
Best Regards
January 7, 2022 at 4:29 am #343909
ryadigitalParticipantThanks Elise, but seems like what you posted above seemed to work.
For anyone else who might stumble into this issue:
Instructions to Achieve URL Pattern:
yourwebsite.com/projects/your-project-name
yourwebsite.com/blog/your-blog-title1. Go to Settings > Permalink
-Select custom structure and use this value:
/blog/%postname%/2.) Go to Theme Settings > Portfolio
-Project Portfolio URL Slug:
projects-Project Portfolio URL Slug:
projects(Remember to hit save!)
3.) Find this theme file:
wp-content/plugins/basel-post-types/basel-post-types.phpFind: ‘rewrite’ => array(‘slug’ => $portfolio_slug),
Replace With: ‘rewrite’ => array(‘slug’ => $portfolio_slug,’with_front’ => false),(There were multiple instances of this find and replace – I believe it occurred twice)
(You might see the second occurance at Line 524)4.) Double check to make sure you saved your Permalinks and Theme Settings!
January 8, 2022 at 5:24 pm #344147
Elise NoromitMemberHello,
Thank you for the shared information.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register