Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #1043894

    Enfold 4.5. WordPress 5.0.
    Is there any way to make my portoflio pages fall under “domain.com/portfolio/pagename” and my blog posts fall under “domain.com/news/pagename”? Right now, they are unfortunately combining into “domain.com/news/portfolio/pagename”. I must not be the first to ask this. But, I cannot find the answer.

    Follow-up question. How will any proposed fix impact categories for both portfolio pages and the blog (news) posts?

    Thank you in advance for your time and patience.
    Lance

    #1044081

    Bump. Anyone? Please help!

    #1044189

    Hi,

    You can set your permalinks under Settings->Permalink, please have a look there.

    Best regards,
    Rikard

    #1044399

    The issue does not appear to be setting the permalinks. I have done that. It is that the URL for my portfolio pages are appearing WITHIN the directory (permalink) of my blog. I do not want this. Example…. “domain.com/news/portfolio/pagename”. “news” being my blog permalink and “portfolio” being my portfolio permalink. I want my portfolio URL to be “domain.com/portfolio/pagename”.

    Thank you,
    Lance

    • This reply was modified 5 years, 11 months ago by contiorg.
    #1045390

    Hi Lance,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1055256

    Hello, I am having the same problem. My portfolio items are under the category blog!
    here
    I would just want it under portfolio.
    Thank you for any help
    Srishti

    #1056638

    Hi Srishti,

    They should not be in the blog category. This will cause the permalink conflict. Please remove the “blog” category from portfolio items.

    Best regards,
    Victoria

    #1056890

    hello Victoria!
    Thank you so so so very much for getting back to me.
    So I do not have a blog category under portfolio. But it is showing me the portfolio pages under blog permalink!!!
    I would just like it to say portfolio not blog.
    What can I do or fix. My permalink structures in the settings look fine.

    I am including the login info below…

    • This reply was modified 5 years, 10 months ago by c_srishti.
    #1056950

    I have the permalink set up as
    /blog/%postname%/

    It seems like that is applying to blogposts as well as the portfolio items!??
    I would like the blogposts to be under mydomain/blog/postname

    And I would like my portfolio items to be under mydomain/portfolio/postname

    Please tell me what can I do to achieve this?
    Thanks a lot
    Srishti

    #1057188

    Hi Srishti,

    Here is an article for you to consider:

    What Are Permalinks in WordPress? How to Set Them and Why

    and one more
    https://codex.wordpress.org/Settings_Permalinks_Screen

    If you need further assistance please let us know.
    Best regards,
    Victoria

    • This reply was modified 5 years, 10 months ago by Victoria.
    #1057969

    thanks a lot Victoria! I explored the “Portfolio Items Base” and “portfolio category base” in addition to “Category base” and now it seems satisfactory.
    I have my blog posts under blog and portfolio under portfolio :)
    Haoever is it possible to have something like: %portfolio-category% so that the items fall into their relative category as they are shown on the permalinks? S

    And secondly, how about portfolio sub-categories? Is it possible to have sub-categories and how to show them, is it possible to have one page that shows all the portfolio items and a drop down to select the categories?

    Thanks so much for the direction!!!! :D

    • This reply was modified 5 years, 10 months ago by c_srishti.
    #1058627

    Hi Srishti,

    You might want to consider a plugin to have more flexibility with permalinks.

    Here is a great article for you

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1059413

    thank you for your help!

    #1059477

    includes/admin/register-portfolio.php
    I believe changing the rewrite “with_front” to “false” (lines 34 and 54) will solve all my problems. But, my changes to the file do not appear even thought WP says they saved. I tried saving the file to “includes/admin/register-portfolio.php”, but that did not work.

    Line 34 ‘rewrite’ => array(‘slug’=>_x($permalinks[‘portfolio_permalink_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),
    Line 54 “rewrite” => array(‘slug’=>_x($permalinks[‘portfolio_entries_taxonomy_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),

    —————————–
    c_srishti, I’m not sure what your solution was. It doesn’t matter what I add to the portfolio item base or custom structure. The portfolio base incorrectly will fall under my custom director structure (see below) which is what I do NOT want. This should not require site access. I can’t be the first person to NOT want portfolio to be within my blog directory.
    —————————–

    EXAMPLE:
    Permalinks > Custom Structure = /blog/
    Permalinks > Portfolio Items Base = portfolio

    This happens (bad) = domain.com/blog/portfolio/item-in-my-portfolio
    I need this = domain.com/portfolio/item
    I need this = domain.com/blog/item

    I have the CPT UI plugin, but portfolio is already built into Enfold. Why can’t I use it the way I need?

    Added:
    It looks like others had this issue in older versions on WP/Enfold. I’m not sure it was ever solved. I’m working my way through this thread. https://kriesi.at/support/topic/change-with_fronttrue-from-portfolio-entries-custom-post-type/

    • This reply was modified 5 years, 10 months ago by contiorg.
    #1059539

    Hi contiorg,
    It was simpler than I thought.
    I am not in from of my computer right now, I can double check for you tomorrow, but I know how hard it is to wait to get things fixed…
    For permalink I added
    %category%/%postname%
    Category base(not sure what it was called) I put in: blog
    This is considering all my blog posts are under the category blog
    Portfolio entries base: portfolio
    Portfolio item base: paintings

    As I said I will double check to make sure I got those correct or if my memory…
    All the best
    Srishti

    • This reply was modified 5 years, 10 months ago by c_srishti.
    #1059651

    Thank you for your reply Srishti. If I were to do what you did above, I believe I would see the following: 1) domain.com/blog/<individual-blog-entry> and 2) domain.com/blog/paintings/<individual-painting-entry>. I’m trying to prevent such a parent-child permalink structure between my blog and portfolio.

    My previous solution regarding “with_front” ended up working. Perhaps it was a time-based or cache issue. The edits to the register-portfolio.php file finally saved. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.

    Thank you again for your insight!

    #1060378

    Hey!

    Have you tried using the filter from the previous thread? I think it is not working because the “with_front” value is set as a string instead of boolean.

    /* Change portfolio post type settings */
    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod');
    function avf_portfolio_cpt_args_mod($args) {
    	$args['rewrite']['with_front'] = false;
    	return $args;
    }

    It was set to ‘false’ instead of false previously.

    This plugin might help: https://wordpress.org/plugins/custom-permalinks/

    Regards,
    Ismael

    #1060658

    My previous solution above suddenly ended up working. The edits to the register-portfolio.php file finally saved. I just changed true to false. Perhaps it was a time-based or cache issue. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.

    Is there any way I can make this change on my child theme so I do not need to worry about this edit being overwritten with each update? For now, I saved the register-portfolio.php file to my local drive and noted my changes.

    Thank you in advance

    #1060969

    Hi,

    You can remove the default “portfolio_register” function and create your own custom post type registration.

    // https://codex.wordpress.org/Function_Reference/remove_action

    remove_action('init', 'portfolio_register');
    add_action('init','portfolio_register_new');
    function portfolio_register_new() {
       // the portfolio_register function here
    }
    

    Best regards,
    Ismael

    #1061315

    Thank you Ismael. I have the CPT UI plugin and debated creating a new Post Type. This helps. For now, I will stay with the parent theme fix while I look for a less programmatic solution or can devote time to try this in our dev environment.

    #1062477

    Hi,

    Alright. Let us know if you need anything else. Have a nice day.

    Best regards,
    Ismael

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.