aledan
Forum Replies Created
-
Or just bypass Sage blade template rendering for TranslatePress.
/** * Render page using Blade */ add_filter('template_include', function ($template) { if (strpos($template, 'translation-manager.php')) { return $template; } collect(['get_header', 'wp_head'])->each(function ($tag) { ob_start(); do_action($tag); $output = ob_get_clean(); remove_all_actions($tag); add_action($tag, function () use ($output) { echo $output; }); }); $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) { return apply_filters("sage/template/{$class}/data", $data, $template); }, []); if ($template) { echo template($template, $data); return get_stylesheet_directory() . '/index.php'; } return $template; }, PHP_INT_MAX);
Revert this commit fix the issue.
Forum: Plugins
In reply to: [Enhanced Media Library] Little bugGlad to contribute!
Thanks for this great plugin!Forum: Plugins
In reply to: [W3 Total Cache] Errore NewRelic service.phpI have the same on my website.
Which host do you have?When a post is published is better than updated/saved.
I’m looping custom post type to show taxonomy terms.
But I need to order them regarding to the last updating (I mean latest post tagged with CPT-onomies term).Anyway, “save_post” action does the trick, but seems that publish_[custom_post_type] action doesn’t.
Thanks
[UPDATE]
Got it working with “save_post” action. Isn’t what I want, but can do the trick.[UPDATE]
After post publishing, if I set the post status to draft and then publish it again the function work and I got the terms.
How I can fix it?Forum: Plugins
In reply to: [Plugin: LeagueManager] Previous match in team templateWork perfect for me.
Also in rc3 release. This bug seems not resolved yet.
Thanks a lot!
Forum: Plugins
In reply to: Cimy User Extra Fields – Checkbox Problem – ???Same problem here.
Thanks.
Forum: Fixing WordPress
In reply to: Show post only with imageNo, just with “add image” button in the write post area.
Thanks a lot.
Forum: Plugins
In reply to: Plugin for WordPress like AdsManager for JoomlaForum: Plugins
In reply to: [Plugin: LeagueManager] Widget ProblemsThanks a lot!
Forum: Plugins
In reply to: [Plugin: LeagueManager] Widget ProblemsSame here. Anyone have a fix? Thanks!
Forum: Plugins
In reply to: Plugin for WordPress like AdsManager for Joomla?? Up
Forum: Plugins
In reply to: post image, image title, description … automatic galleryI need display gallery, outside the loop, in a dedicated box only if images number is > 1.
How I can do that with this function? Thanks a lot!
Aledan