New Landing How can we help? Themeforest Theme Support Flexform Portfolio Permalinks

Viewing 15 posts - 1 through 15 (of 26 total)
  • Posted in: Flexform
  • #1443
    mancel
    Member
    Post count: 4

    Currently the permalink on my Portfolio post pages look like http://mancel.tv/?portfolio=post-name

    How do I get it to be http://mancel.tv/work/post-name

     

    Thanks in advance

    #1477
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    Edit this file: flexform/includes/custom-post-types/portfolio-type.php

    Change : ‘rewrite’ => false,

    to : ‘rewrite’ => array( ‘slug’ => ‘work’ ),

    Regards,
    ————————————————————————————————————

    Cosmin
    Support Assistant

    #2060
    vmedia
    Member
    Post count: 5

    Hi,

     

    Is it possible to get ‘portfolio category’ instead of work.

    url.com/”portfolio category”/slug

    Thanks in advance

     

     

    #2083
    mancel
    Member
    Post count: 4

    @vmedia I’m assuming you want that structure on the single portfolio page? I’m curious about that too, but I’d want to keep my previous url.com/work/ and just append the rest to the end.

    –the same goes for the blog page–


    @cosmin
    My blog posts (not portfolio posts) now look like url.com/blog on the main blog page, which is good. But on the single blog posts it takes the /blog/ out and just includes my custom structure in the WP permalink settings — url.com/category/postname — How do I change it to url.com/blog/category/postname ?

    #2091
    bn86
    Member
    Post count: 44

    I would also like to achieve what @mancel is asking for. i.e:

    for portfolio pages:
    url.com/work/”portfolio category”/slug
    for blog posts:
    url.com/blog/category/postname

     


    @cosmin
    There are two places in that file that say ‘rewrite’ => false

    When I replace both instances with ‘rewrite’ => array( ‘slug’ => ‘work’ ),  the /work page shows up as an archive, as expected, and so does each portfolio category. However, the portfolio single page is a 404

    When I replace only the first instance with your code, only the portfolio category archive works as expected, but the portfolio single shows up as ?portfolio= in the URL and the main portfolio archive shows up as ?post_type=portfolio

    When I replace only the second instance with your code, the category archive and the main archive work as expected, but the portfolio single page is a 404

    I hope that helps? Is there a way to make this work as a normal custom post type, i.e. without the ?= stuff?

    Many thanks

    #2132
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hey guys,

    This might be easier for you to try – http://wordpress.org/extend/plugins/custom-post-type-permalinks/

    – Ed

    #2163
    mancel
    Member
    Post count: 4

    @swiftideas That did help but now the portfolio (work) page is not filterable and is displaying in masonry style only. I also had to keep the array(‘slug’=>’work’), changes from before to keep the portfolio permalinks correct. How do I fix the portfolio display problem I now have?

    #2167
    bn86
    Member
    Post count: 44

    Thanks for the quick reply Ed

    For me, this plugin created 404s for the portfolio single pages. I’m not sure what else to do.. Any ideas?

    #2226
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Can you try regenerating your permalinks by visiting Settings/Permalinks?

    Also, single posts will use whatever permalink structure you have defined in WordPress, our theme doesn’t affect that.

    Regards,

    ————————————————————————————————————

    Cosmin
    Support Assistant

    #2447
    bn86
    Member
    Post count: 44

    Using that plugin, I am able to change the portfolio page to a ‘work’ page, but like @mancel mine is also not filterable.

    I tried regenerating the permalinks, but I’m still getting 404s for the portfolio item pages. What settings would you recommend with that plugin? And should I be changing both instances of the rewrite code?

    I think we basically just want to be able to use the portfolio without the = and ? stuff in the url.. I hope you can help.

    Thanks

    #2448
    mancel
    Member
    Post count: 4

    @bn86 Exactly. No ‘=’ and ‘?’ and replace the word ‘portfolio’ with our choosing. One change to the portfolio seems to mess up the standard blog sections and vice versa.

    #2572
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi guys,

    Took another little look into this. If all you want to do is change the rewrite structure, and the “portfolio” name, then do this – http://support.swiftideas.net/knowledgebase/portfolio-url-rewrite/

    and also this – http://wordpress.stackexchange.com/questions/53298/custom-post-type-url-rewriting

    – Ed

    #2595
    bn86
    Member
    Post count: 44

    Thanks very much Ed! That’s very useful.

    I’ve just added a comment to the knowledgebase article in case it helps other people. Perhaps you could check it out?

    Cheers

    #2837
    mancel
    Member
    Post count: 4

    This is what my final code looks like.

    I also changed the Permalink structure in WP Settings to /blog/%category%/%postname%/

    Everything looks good so far. Thanks a lot Ed.

    #4634
    Toxicus
    Member
    Post count: 14

    Hi guys! My portfolio permalink work looks like http://samokhinteam.ru/?portfolio=147  How do I get it to be http://samokhinteam.ru/?portfolio=krasnoyarskij-gorodskoj-portal In permalink settings I set /%postname%.html But my new added work link looks like p=147. I do not know how it happened, but my previos works looks normal.

Viewing 15 posts - 1 through 15 (of 26 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register