Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Modify the portfolio-carousel.php to display custom post types
New Landing › How can we help? › Themeforest Theme Support › Flexform › Modify the portfolio-carousel.php to display custom post types
- This topic has 117 replies, 5 voices, and was last updated 11 years by Melanie – SUPPORT.
-
Posted in: Flexform
-
June 11, 2013 at 4:37 pm #7859
Guy’s – I have editied portfolio-carousel.php to display my custom post types sd_article
Everything works but the carousel settings list the portfolio categories instead of my custom post type categories so I cannot filter by category.
I have found the following on line 234:
“value” => get_category_list(‘portfolio-category’),
I have tried changing this to article-category as per my CPT but instead of listing all categories it displays:
ALL
1
2Selecting 1 or 2 does not function and it reverts to All upon saving, however the carousel is showing all my articles.
Any idea how I would modify this file to allow me to filter the categories?
Regards
Sam
June 12, 2013 at 7:19 pm #8025Hi Sam,
We can’t really help with theme customizations, but to give you a starting point, get_category_list() is a function that retrieves post categories.
You would need to run your own custom WP query in that file and pull in the taxonomy you have for that CPT.
Regards,
————————————————————————————————————
Cosmin
Support AssistantJune 17, 2013 at 2:58 pm #8381This reply has been marked as private.June 18, 2013 at 2:12 pm #8542This reply has been marked as private.June 18, 2013 at 2:39 pm #8555This reply has been marked as private.June 18, 2013 at 9:43 pm #8617Really sorry to say I’m too busy at the moment to take on extra work. You might want to look into hiring a freelancer from themeforest or something
Thanks
BenJune 21, 2013 at 11:45 am #8904No problem guys – custom work aside, what about the issues I raised? nobody has addressed them as yet so I would appreciate a response here.
With regards to updates to your theme, I have configured a child theme and have modified meta-boxes.php and composer.php in order to have the meta boxes and page builder available on my CPT’s – I followed the advice given by Ed on this post: http://support.swiftideas.net/forums/topic/flexform-theme-child/
If you’d like to have the page builder in the child theme, then change the parent theme functions.php file line 30 from: include(SF_INCLUDES_PATH . ‘/page-builder/js_composer.php’); to include(get_stylesheet_directory_uri(). ‘/includes/page-builder/js_composer.php’); and copy the file structure in the child theme.
Unfortunately the meta boxes and page builder just disappear from all post edit pages – the info you provided seems pretty straight forward so not sure what I am missing? Could you please advise.
Regards
Sam
June 21, 2013 at 7:48 pm #8932Hmm this seems really Odd, I’ll try and get ed in here
Thanks
BenJune 22, 2013 at 8:50 pm #8976Do you have the folder /includes/page-builder within your child theme? Are you seeing any errors in the browser console?
– Ed
July 1, 2013 at 5:56 pm #9765Hey Ed, sorry – busy week!
I followed the instructions you posted and copied the builder into the child theme – modified functions.php and the builder no longer appears – revert and all is well – unless I was being stupid I am pretty sure I did it correctly?! – no console error, just doesn’t load.
I am in the process of migrating data at the moment so will revisit this when I have time – more important is the bug in the portfolio carousel and the testimonials slider – they work fine but if you select an individual category to display then no posts show and no testimonials – leave them set to ‘All’ and it works – my client really needs to display different categories in different areas so it is crucial that this functions correctly.
I also spotted a small issue where if you set a custom page title in the meta – the title changes correctly but an empty <h3> tag appears – looks like it is the page sub title causing this – if you leave it empty. have hidden with css for now as it causes the title area to appear longer than pages where no custom title is set.
And in the Portfolio, I cannot use & or + characters in category names! – if i do so the post is not displayed when clicking the category filter, thought it does show there is a post there.
These may seem like small issues but they are quite important for the site and as yet nobody has acknowledged these issues.
Any news on an update of the theme?
Regards
Sam
July 1, 2013 at 11:28 pm #9807Hi Sam,
The & and + in the category is a known issue, but something that we don’t currently have a workaround for as it’s a jQuery limitation. Not sure if there will be a workaround possible for this, but we are still looking.
In terms of the other 2 issues, I’ll try and set aside some time over the next few days to look into and get fixes for you where necessary.
Thanks for letting us know.
– Ed
July 2, 2013 at 12:03 pm #9837Thanks Ed, I appreciate your time here!
Regards
Sam
July 3, 2013 at 12:09 pm #9970Hello Ed,
Sorry to trouble you once more but can I add one more small issue for you to investigate.
I have just discovered that when using the Portfolio Carousel block, it causes the page to not show up in the rss feed – if I delete the carousel then the item appears in the feed.
The only reference I could find which helped me pinpoint the problem is that it is a parse error in the rss feed – in this case caused by the Portfolio Carousel block!
Hopefully this is my last issue – other than that my project is going extremely well thanks to the bootstrap gained from using your template!
Regards
Sam
July 4, 2013 at 6:49 pm #10235Hi Sam,
Can you let me know the link to the page with the carousel so that I can do some testing?
Thanks,
– Ed
July 4, 2013 at 7:01 pm #10240Just to let you know, I’ve fixed both the other issues for the next update.
– Ed
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.