Peter Berger
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] “Greater than” value comparison?Try
[if field=number value=5 compare=>]
orcompare=more
.Hi,
I think you need the following if statements:
[if first]First post[/if] [if last]Last post[/if] [if every=3]Every 3 posts[/if]
Something like:
[if every=3] </td></tr><tr><td> [else] </td><td> [/if]
Peter
- This reply was modified 4 years, 4 months ago by Peter Berger.
Forum: Plugins
In reply to: [Custom Content Shortcode] Show category term if checkedAnd this?
[if category=book-review] Show what you like or [taxonomy category field=link] to show links to all checked categories. [/if]
Forum: Plugins
In reply to: [Custom Content Shortcode] Show category term if checkedWhat if you remove the
[-if each-value]
-part?[for each=category] [if each=book-review] [each link] [/if] [/for]
Forum: Plugins
In reply to: [Custom Content Shortcode] Custom field on different pageIt should be possible with the [loop-count] shortcode (take a look at the Loop reference page).
Forum: Plugins
In reply to: [Custom Content Shortcode] Custom field on different pageYes, you can. Take a look at the
[content]
shortcode.For example:
[content type=product id=123 field=_price]
Or:
[content type=product_variation id=321 field=_price]
Forum: Plugins
In reply to: [Custom Content Shortcode] custom post type and is authorDid you take a look at the reference of the [pass] shortcode (Settings > Custom Content > Advanced)? It is easy to ask, but you will learn more if you try to find it out by yourself.
Try something like this:
[pass user_field=id]
[loop type=yourcptname count=5 author={USER_FIELD} list=true]
[field title]
[/loop]
[/pass]Peter
Forum: Plugins
In reply to: [Custom Content Shortcode] custom post type and is authorUse the
[pass]
shortcode to pass the id of the current user to the theauthor
parameter of the loop.Peter
Forum: Plugins
In reply to: [Custom Content Shortcode] Display posts from a specific yearWhy are you using the
[for]
shortcode?This should work:
[loop type=tidningar year=2019 orderby=date][link] [field image size=thumbnail] <h4>[field title]</h4> [field date] | [field excerpt words=25]…<br>[/link] [/loop]
Forum: Plugins
In reply to: [Custom Content Shortcode] Use CCS inside Gravity Forms HTML fieldMay be the snipped on this page will help you out:
https://wpstreak.com/shortcodes-gravity-forms-fields/Forum: Plugins
In reply to: [Custom Content Shortcode] Using a ‘value’ with spaces?No problem!
Forum: Plugins
In reply to: [Custom Content Shortcode] Using a ‘value’ with spaces?Hi Klaas, check this topic:
https://www.ads-software.com/support/topic/loop-value-has-space-so-not-displaying/
Peter
Forum: Plugins
In reply to: [Custom Content Shortcode] Return total posts as numeric countTry
[loop-count]
.Total number of posts:
[loop-count type=post]
Forum: Plugins
In reply to: [Custom Content Shortcode] Loop Value has space, so not displaying?Hi,
Try it with single quotes around it:
'blue white'
Peter
Forum: Plugins
In reply to: [Custom Content Shortcode] Limited to fields from ACF and WCK?Hi Achim,
It’s not limited to the fields you mentioned.
Take a look at Dashboard > Content. If you see the field there, I think you can pull out data from the field.
Peter