pappo87
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] WordPress 4.2.3 broke my codeI think I’m going to rewrite the affected sections in pure php in page templates. This is the most future proof solution for now.
I really hope developers will find a solution for this problem, custom content was really a great plugin.Forum: Plugins
In reply to: [Custom Content Shortcode] WordPress 4.2.3 broke my codeI hope they will roll back this change. It was so handy to write codes in tags like we did. Writing a page in pure php is so much harder and lots of plugins won’t have reason to exist anymore. I bet half of wordpress sites have to be rewritten now.
Is 4.2.2 really unsecure or can be used, atleast in the short term?Forum: Plugins
In reply to: [Custom Content Shortcode] WordPress 4.2.3 broke my codeLink
They fixed shortcodes vulnerability, I think all plugins that use them need an update.Forum: Plugins
In reply to: [Custom Content Shortcode] getting all radio button valuesThis worked perfectly! Thanks to your plugin I can completely avoid php use.
Thank you very much
TonyForum: Plugins
In reply to: [Custom Content Shortcode] getting all radio button valuesModifying your code to work in my site, I got this:
[array choices=field_55a4468691fa7] [loop category=restaurants field=city value='{VALUE}'] [if first] <p>City: {VALUE} </p> [/if] [/loop] [/array]
where field is a custom field.
It’s working, but it also outputs lots of<br>
tags between the two values and the page become so long! Any way to avoid this?Forum: Plugins
In reply to: [Custom Content Shortcode] getting all radio button valuesMaybe before I did something wrong, but now it’s working fine.
Now I’ll find a way to loop each array value and output a link if a post matching the value is found.
Thank you very much, very appreciate your kindness.Forum: Plugins
In reply to: [Custom Content Shortcode] getting all radio button valuesThank you for your update. I tried your code but unfortunately it returns a php warning:
Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/custom-content-shortcode/includes/core/content.php on line 1853
There must be problems retrieving these kind of values on page. It returns the same error with field name or field key.
Thanks in advanceForum: Plugins
In reply to: [Custom Content Shortcode] getting all radio button valuesI finally extracted all radio button fields on my page.
You can do it typing the field key instead of field name in the code<?php echo implode(', ', get_field_object('example')[choices]); ?>
The result is an array so it can be further processed if needed.
With the Shortcode exec php I embedded a php snippet in my page. I was wondering if custom content shortcode had a snippet to extract an array of this kind of field.Forum: Plugins
In reply to: [Custom Content Shortcode] order switch on pageNow it’s working as I wished. Thank you for the quick updates ??
Forum: Plugins
In reply to: [Custom Content Shortcode] order switch on pageIt is correct to do this:
[if pass='{SORT}’]
[loop type=post orderby='{SORT}’]
[else]
[loop]
[/if]
because if I don’t give parameters in the url, no posts are displayed.
TYAForum: Plugins
In reply to: [Custom Content Shortcode] order switch on pageHello,
I could not get it working until I noticed there was an update. I updated the plugin and now it’s working like a charm! Thank you for the fast reply and congrats for this awesome plugin.