Tagged: Permalinks
-
AuthorPosts
-
June 9, 2015 at 8:53 pm #456915
Hi Enfold Team,
Loving the theme and my site but I am having some trouble with my permalinks structure.
I have 3 types of posts I do, Press Releases, Resources and Blogs. I have created pages to act as the “homepage” for each type of post. I want these “homepages” to be reflected in the url structure for each post like so:
http://www.mindscope.com/company/news-and-press-releases/PostName
http://www.mindscope.com/company/news-and-press-releases/PostName
http://www.mindscope.com/mindSCOPE-Recruiting-and-Staffing-Software-Blog/PostNameI don’t to use categories because I want my sitemap to be proper, I want to posts to follow the pages not a category of the same name.
Thank you so much,
Mary
June 10, 2015 at 12:06 pm #457137Hey mindSCOPE Staffing Software!
Thank you for using Enfold.
You can use this plugin to manually edit the post url: https://wordpress.org/plugins/custom-permalinks/
Activate the plugin, edit a post then set the Permalink.
Regards,
IsmaelJune 10, 2015 at 4:04 pm #457306Hi Ismael,
I want to actually link the content to parent pages this plugin just seems to add the ability to type / in the permalinks bar, just typing blog there is not going to give my sitemap the structure I want, or is it? Also for reference, my blog is a page I created because I didn’t want to use the built in blog layout.
The ability to add parent pages to posts would be a great addition to the theme.
Thanks,
Mary
June 10, 2015 at 4:52 pm #457358Hey Mary!
This is more of a WordPress limitation, you can not set a page to be a “parent” of a custom post type, one thing you can do, is set a 301 redirection from the “real parent” of the custom post type to the custom page you have crafted.
Best regards,
JosueJune 10, 2015 at 5:12 pm #457380Hi Josue,
Okay, thanks for clarification. Now if I use this plugin to just simply rewrite my urls, how does google (or other search engines I submit my sitemap to) know that these posts are resources, blog posts or press releases and that they fall under or are linked to certain pages? If I categorize them with their respective types is that enough for Google? Does it even matter?
There is no where to forward from because my posts don’t have any kind of hierarchy on my website they are all just floating around based on categories which is why I really wanted them linked to a page.
I am not so knowledgeable in this area and just want to be sure my site structure is not detrimental to my SEO efforts.
Thanks,
Mary
June 10, 2015 at 5:31 pm #457402Hi Mary!
You could set a rel=index tag in the individual custom post types to explicitly state their index, you can use the following code in your theme / child theme functions.php for that:
add_action('wp_head', function() { if(is_singular('portfolio')){ ?> <link rel='index' title='Portfolio Index' href='http://mysite.com/portfolio-index' /> <?php }elseif(is_singular('product')){ ?> <link rel='index' title='Product Index' href='http://mysite.com/product-index' /> <?php }elseif(is_singular('book')){ ?> <link rel='index' title='Book Index' href='http://mysite.com/book-index' /> <?php }else{} }, 1);
Change slugs and URLs.
Regards,
JosueJune 10, 2015 at 7:36 pm #457485Hi Josue,
Thank you! I will keep that in mind, I’m not so open to changing the code because I’d have to redo it every time I update the theme and I am not an experienced coder at all. For now I will just use the plugin to rewrite my urls and hope it positively affects on my SEO.
Thank you for you help and time,
Mary
June 10, 2015 at 11:27 pm #457564If you don’t have a child theme set-up you could use this plugin (once activated go to Plugins > Edit Functions) to store custom functions like that.
Best regards,
JosueJune 11, 2015 at 3:43 pm #457863Hi Josue,
Thanks so much, I didn’t know there was a plugin like that! It will be very helpful for me.
Have a great day,
Mary -
AuthorPosts
- The topic ‘Permalinks structure’ is closed to new replies.