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
-
August 14, 2013 at 12:45 pm #16453
Is it broken on 3.6? Never seen this issue before, so can only assume it may be something your end. Tested here, working fine.
The permalink issue must also be something local, nothing changed in the update relating to that, and not had any other reports of an issue.
Apologies I couldn’t be of more help on those!
– Ed
August 15, 2013 at 10:42 am #16544Ed,
After some investigation it seems the Search issue is a plugin conflict…
I was planning on using the mPress ‘Hide from Search’ plugin and had it enabled, seems this knocks out the search results.
I was also looking at Relevannsi to replace the WordPress search but this also breaks the search :0(
Any suggestions as to how I may use Relevannsi and hide posts/pages and not break the template???
The permalink issue was indeed local – it first seemed to be caused by WPML but then going through the ‘disable all/enable one-by-one’ dance, the landing pages and leads plugins (which both modify the wordpress section of .htaccess) seemed to trigger it – however suddenly everything started to work!
…after further digging it seems I need a new computer! lovl …the bugger needs more power! I think the scripts were failing as I have updated the custom post type permalinks plugin – knocked out the pages – but this time visiting permlinks restores things.
So – after all this back and forth I am very pleased to say everything is now working as planned!
Thank you so much for all your help here.
Just one thing though, the geek in me is curious and I would like to make things as easy as possible for the client so if you could perhaps point me in the right direction to modify the ‘Related Articles’ checkbox on the Post Meta to look at my CPT instead it would make me happy :0)
LOVE YOU ED (and Flexform) – HAVE A GREAT DAY!
PS. Do I need to use the builder from 1.5 in my child theme in order to use the new parallax thing?!
August 15, 2013 at 11:15 am #16549Sorry, one more question…
WPML settings using Flexform, should this be setup as:
Translate by WPML
or
Translate using .mo files.
if the latter; what is ‘Automatically load the theme’s .mo file using ‘load_theme_textdomain’.’ – and do I need it?
Thanks
August 18, 2013 at 9:52 am #16972Absolutely no idea about Relevannsi, never heard of it!
For the related articles, edit single.php the args array is line 238, just add the same line as you changed for the pb asset.
Yes, you would need to update to v1.5 for the parallax element.
WPML – either way, we provide the po file, but you can do it within WPML if it’s easier for you.
– Ed
August 18, 2013 at 10:51 am #16987This reply has been marked as private.August 19, 2013 at 5:03 pm #17173This reply has been marked as private.August 20, 2013 at 2:54 pm #17363This reply has been marked as private.August 20, 2013 at 2:57 pm #17366Hi Sam,
I’m afraid it seems like this goes beyond what we can grant within the scope of free support. I’m afraid you’ll have to hire a dedicated developer to help you find your way around your modification.Thanks!
August 20, 2013 at 3:14 pm #17379This reply has been marked as private.August 20, 2013 at 5:07 pm #17414Hi Sam,
What that code in the link provided is filtering the current function, so add that to functions.php, then change line 235 in single.php:
$categories = get_the_category($post->ID);
to
$categories = get_the_category($post->ID, 'sd-article-category');
Although I can’t remember what you called your custom taxonomy, but make sure that’s correct for the post type!
@melaniemazurides – thanks Melanie, I’ve got this!– Ed
August 20, 2013 at 5:50 pm #17417This reply has been marked as private.August 21, 2013 at 4:22 pm #17539Apologies, that’s what it’s meant to be. If it disappears then not sure where it’s going wrong.
Just had a quick google, maybe try this? – http://stackoverflow.com/questions/12257090/how-to-display-custom-posts-from-a-related-custom-taxonomy
For the h4 issue, it looks like you haven’t closed the tag in the translation?
– Ed
August 21, 2013 at 4:40 pm #17542This reply has been marked as private.August 21, 2013 at 4:51 pm #17546Hi Sam,
You’d add that code within the functions.php, the related_posts_by_taxonomy function. Then edit single.php line 247:
$related_posts_query = related_posts_by_taxonomy( $post->ID, 'article-category' );
– Ed
August 21, 2013 at 5:11 pm #17548This reply has been marked as private. -
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.