Minimum Pro Portfolio – Number of Portfolio Items

Community Forums Forums General Discussion Minimum Pro Portfolio – Number of Portfolio Items

This topic is: not resolved

This topic contains 8 replies, has 3 voices, and was last updated by  lifetreecreative 2 months, 2 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #100892

    lifetreecreative
    Member
    Post count: 5

    I would like to have all of my portfolio items on the same page instead of showing six at a time. Where can I change this?

    Thank you!

    #100930

    braddalton
    Participant
    Post count: 8797

    Use this

    https://gist.github.com/braddalton/376c005abfe84244f115


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #103382

    lifetreecreative
    Member
    Post count: 5

    That doesn’t seem to work. I’m using the Minimum Pro theme. Does that make a difference?

    Also, is there a way to change the URL from /portfolio to /somethingelse?

    Thanks!

    #103401

    braddalton
    Participant
    Post count: 8797

    Where did you put the code?

    I tested it and it works for me hundreds of times.

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    Simply change the slug in the code and re-save your Permalinks.
    [php]
    ‘rewrite’ => array( ‘slug’ => ‘portfolio’, ‘with_front’ => false ),
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #103403

    lifetreecreative
    Member
    Post count: 5

    Thanks so much Brad.

    I placed it in functions.php

    I’m no longer logged in and this is what I see: http://gladheartrealty.com/cms/team/

    #103407

    Tom
    Participant
    Post count: 690

    Hi @lifetreecreative,

    Just a second set of eyes checking in here…

    Brad’s code is absolute rock solid. It stems from pagination settings for portfolio post-types in the Executive/Pro theme but will function perfectly without modification in your Minimum Pro theme. In fact … Minimum Pro ships with this code straight from StudioPress at line 170 in functions.php. In earlier versions you may find this at line 147.


    Choose your next site design from over 300 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #103408

    lifetreecreative
    Member
    Post count: 5

    Thanks Tom!

    Is there a setting on the dashboard that is maybe overriding the code in functions.php?

    #103414

    Tom
    Participant
    Post count: 690

    Short answer: no.

    If you are still having a problem, please look in functions.php to see that you have not duplicated the action in separate functions. This might have happened if you added Brad’s code underneath the pre-existing code to control portfolio pagination. I’d suggest backing out what you may have added and looking at the native code.

    Longer puzzler: Your dev WP installation for the site redesign appears to be in a folder called “cms” and the porfolio post-type items appear to be in an archive called ‘team’ where I would have expected ‘portfolio’. Are you using an additional custom post-type? Anything else custom or funky?

    If you still have problems after this, perhaps you could post your functions.php in a pastebin for us to have a look at.


    Choose your next site design from over 300 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #103943

    lifetreecreative
    Member
    Post count: 5

    Figured it out. Not sure how but I had the code repeated in different places. Removed one of them and worked like a charm. Thank you guys!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.