Portfolio permalink mixed with post permalink

Hello,
it seems that portfolio permalinks are generated with both BeTheme portfolio item settings and default WordPress permalinks for blog items. While setting a permalink for blog like this - "/blog/%postname%/" portfolio links also rely on "/blog/" part which makes no sense. This should be separate.

Comments

  • Hi,
    Wordpress was created as a Blog CMS so it is based on posts. Portfolio is also a custom post type so it is based on the same thing. It is a wordpress limitation and we cannot do anything about it.
    thanks
  • edited October 2017
    Hi,

    this isn't always the case. I believe it's a matter of implementation. For example - WooCommerce products also are custom post type and yet they have separate section in WordPress permalink section that allows users to set basic posts with /blog/ and products with /shop/ and those two don't collide.

    I've also done some websites on Uplift / Atelier and all of their custom post types (portfolio / galleries / team / directory / faqs) have different sections in WordPress permalinks section. Each of them can have a custom base. This also makes custom post permalinks translatable with WPML.
  • Thank you for this information, we will look into it and try to implement it into our theme. Of course there is a possibility to modify the functions in our child theme for more advanced users. The file responsible for the portfolio custom post type is located in functions/meta-portfolio.php in the betheme catalogue.
  • I can PM you the code responsible for permalinks from Atelier or Uplift themes for you to analize if you wish. They use their own framework plugin to set this up but it looks like they are using the default WordPress router for custom posts.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.