polarracing
Forum Replies Created
-
Forum: Plugins
In reply to: [Loops & Logic] Format splitThanks. And thanks for the great work – this plugin is a real game-changer.
Forum: Plugins
In reply to: [Loops & Logic] Nested ItemsYeah, thanks.
Forum: Plugins
In reply to: [Custom Content Shortcode] How to display the Parent value of a taxonomyTry FOR EACH
Forum: Plugins
In reply to: [Custom Content Shortcode] Cloudflare GeolocationYou can use it if you can get it into a variable. Build for example a short-code returning the country-code from Cloudflare, set a variable with it and use the variable in the if clause.
Try:
[pass list="front,side,back"] [set ITEM]value[/set] [pass]
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF IF statement shortcode[if field=field_name] <p>[field name]</p> [/if]
Forum: Plugins
In reply to: [Custom Content Shortcode] Unable to display image for author user post typeContent has to be addressed with an unique value like slug, id or name. Using a field like author does not work.
You have to do a loop. Try
[pass user_field=id] [loop type=listing author='{USER_FIELD}'] [field banner_logo] [/loop [/pass]
- This reply was modified 3 years, 3 months ago by polarracing.
- This reply was modified 3 years, 3 months ago by polarracing.
Forum: Plugins
In reply to: [Custom Content Shortcode] If and else ifThen please close this case
Forum: Plugins
In reply to: [Custom Content Shortcode] Can I use shortcodes in excerpts?Put that in functions.php – remember to use a child theme:
add_filter('the_excerpt', 'do_shortcode');
Forum: Plugins
In reply to: [Custom Content Shortcode] If and else ifTry:
[if field=geodir_post_category contains='1779'] ... [else] [-if field=geodir_post_category contains='1803'] ... [/-if] [/if]
or:
[if field=geodir_post_category value='1779,1803' compare=or] ... [else] ... [/if]
Forum: Plugins
In reply to: [Custom Content Shortcode] Orderby an ACF Date Field doesn’t worktry
[loop type=mytype orderby=field key=start-date] ... [/loop]
Forum: Plugins
In reply to: [Custom Content Shortcode] Event Calendar 5.10 and today’s dateTry:
[format date=Y-m-d in=timestamp][get nday][/format]
if needed set this into a new var.
Forum: Plugins
In reply to: [Custom Content Shortcode] Event Calendar 5.10 and today’s dateto get today into a var try
[set my_var][today format=U][/set] [calc] my_start = my_var + 86400[/calc]
- This reply was modified 3 years, 4 months ago by polarracing.
- This reply was modified 3 years, 4 months ago by polarracing.
Forum: Plugins
In reply to: [Custom Content Shortcode] Event Calendar 5.10 and today’s dateIf you create a var for your date with
_EventStartDate + 1
as value for start and_EventEndDate - 1
for end you can use them andcompare=more
orcompare=less
to get the result you are looking for.Forum: Plugins
In reply to: [Custom Content Shortcode] List of post_tag attached to a postWell, then some html might help.
<ul> [for each=post_tag current=true] <li>[each link]</li> [/for] </ul>
or in your case for example:
<div> [for each=post_tag current=true] <div>- [each link]</div> [/for] </div>