-
AuthorPosts
-
December 3, 2014 at 10:25 pm #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-nameSince the update, the portfolio items now have Blog in their URL.
http://www.website.com/blog/portfolio-item/portfolio-item-nameIn 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!
- This topic was modified 9 years, 12 months ago by orourkehospitality.
December 4, 2014 at 3:45 pm #362923Any suggestions on this?
December 5, 2014 at 12:44 am #363348Hi!
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,
ElliottDecember 5, 2014 at 4:06 pm #363599Hi 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!
JenniferDecember 7, 2014 at 12:15 am #364170Hey!
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!
ElliottDecember 8, 2014 at 3:41 pm #364666That 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 – blogPortfolio Entry Settings
Portfolio Items Base – portfolio-item
Portfolio Categories Base – portfolio_entriesWhat can I do to get the blog URL structure back?
Thanks!
December 8, 2014 at 4:14 pm #364687Sorry, ignore the last post! It works now! Thank you!
-
AuthorPosts
- The topic ‘Portfolio Item URL Structure’ is closed to new replies.