Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #362534

    I just updated to the most recent version of Enfold and am running a child theme on WP 4.0.1. We had the URL Structure working perfectly before updating –
    Portfolio – http://www.website.com/portfolio-item/portfolio-item-name
    Blog – http://www.website.com/blog/blog-item-name

    Since the update, the portfolio items now have Blog in their URL.
    http://www.website.com/blog/portfolio-item/portfolio-item-name

    In our permalink settings I have the Common settings set to Custom Structure /blog/%postname%/ and then have the Portfolio Entry Settings set to Portfolio Items Base – portfolio-item

    I also attempted to deactive Yoast to see if that would work and the structure stayed the same.

    Can you help with this?

    Thank you!

    #362923

    Any suggestions on this?

    #363348

    Hi!

    I think what your wanting to do is use just the post name for the permalink and in the category base use “blog”. That will correct your portfolio post URLs and when viewing your default post archives there will be a /blog/ prepended to the post name.

    Regards,
    Elliott

    #363599

    Hi Elliott,

    Thanks for the response. Unfortunately, that fixed the portfolio items, but not the blog posts. I ended up putting the Common settings back to Custom Structure – /blog/%postname%/ so that any links directing to our blog wouldn’t be broken.

    When I did what you suggested, our blog posts didn’t have anything before them i.e. – website.com/blogpost

    Thanks!
    Jennifer

    #364170

    Hey!

    Try opening up /enfold/includes/admin/register-portfolio.php and change line 34 from this.

    'rewrite' => array('slug'=>_x($permalinks['portfolio_permalink_base'],'URL slug','avia_framework'), 'with_front'=>true),
    

    To this.

    'rewrite' => array('slug'=>_x($permalinks['portfolio_permalink_base'],'URL slug','avia_framework'), 'with_front'=>false),
    

    And then save your permalinks again.

    Cheers!
    Elliott

    #364666

    That didn’t work either. The portfolio pieces URLs are fixed but the Blog items are not. They now just are showing up as http://www.website.com/blogpost. I changed the code you suggested and have the following Permalink settings –

    Common Settings – Post Name

    Optional
    Category Base – blog

    Portfolio Entry Settings
    Portfolio Items Base – portfolio-item
    Portfolio Categories Base – portfolio_entries

    What can I do to get the blog URL structure back?

    Thanks!

    #364687

    Sorry, ignore the last post! It works now! Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio Item URL Structure’ is closed to new replies.