April 16, 2014 at 10:12 pm #100892
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!April 17, 2014 at 6:31 am #100930
Brad Dalton has written 1000 + Genesis tutorials & 4000+ Code Snippets .May 2, 2014 at 8:50 pm #103382
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!May 2, 2014 at 10:35 pm #103401
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.
'rewrite' => array( 'slug' => 'portfolio', 'with_front' => false ),
Brad Dalton has written 1000 + Genesis tutorials & 4000+ Code Snippets .May 2, 2014 at 10:41 pm #103403
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/May 2, 2014 at 11:00 pm #103407
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.
May 2, 2014 at 11:05 pm #103408
Is there a setting on the dashboard that is maybe overriding the code in functions.php?May 2, 2014 at 11:38 pm #103414
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.
May 6, 2014 at 4:45 pm #103943
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!
You must be logged in to reply to this topic.