Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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/PostName

    I 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

    #457137

    Hey 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,
    Ismael

    #457306

    Hi 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

    #457358

    Hey 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,
    Josue

    #457380

    Hi 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

    #457402

    Hi 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,
    Josue

    #457485

    Hi 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

    #457564

    If 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,
    Josue

    #457863

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Permalinks structure’ is closed to new replies.