iantresman
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Changing the date format@polarracing thank you again for your help. I’m going to push my luck, is there a way to compare two dates?
If myfield=2021-03-01, then
myfield – 2000-03-01 = 21 years. But
myfield – 2000-04-01 = 20 years (and 11 months).Forum: Plugins
In reply to: [Custom Content Shortcode] Changing the date formatAh! Easy when you know how. Just to be thorough, if I now want to store the year in a variable so that I can use it, this works (note that myfield=2021-03-01):
[set year][format split='-' part=1][field myfield][/format][/set] [set month][format split='-' part=2][field myfield][/format][/set] [set day][format split='-' part=3][field myfield][/format][/set] The year is: [get year] month: [get month] day: [get day]I can now calculate and show that 2000 was
[calc][get year]-2000[/calc]years ago.Forum: Plugins
In reply to: [Custom Content Shortcode] Changing the date formatThank you for the pointer, but I’m still not getting it. Let’s suppose I have:
[field myfield] which displays 2021-03-31.How do I tell [format split=’-‘ part=X] to split “myfield”? And what does “part=X” do, it looks neither like the original field, not the split field. Do I have to store “myfield” in a variable first?
Sorry to be so dense. I’d happily put together some documentation if I understood it.
Forum: Plugins
In reply to: [Custom Content Shortcode] Changing the date formatMany thanks for that. Is this documented anywhere, I couldn’t find it. Would be nice to see whether I am missing any other options.
Forum: Plugins
In reply to: [Custom Content Shortcode] Display a percentage of the contentI don’t think that CCS has any string functions. It would be nice to have some.
I’ve used CCC successfully in posts, pages and widgets. But it might be theme dependent. I used GeneratePress and Elementor without problem.
Forum: Installing WordPress
In reply to: Plugins compatible?Thanks for that.
Forum: Installing WordPress
In reply to: Plugins compatible?But I have to click each plugin individually. The updates page displays that information without further clicks. It seems that the code is available to show the compatibility, it is just not used.
Forum: Plugins
In reply to: [Widgets for Google Reviews] Responsiveness incorrectThanks for that, yes another layout does work around the problem.
Forum: Plugins
In reply to: [Lightbox & Modal Popup WordPress Plugin - FooBox] How to remove alt textOn my general tab, I have the option “Hide Captions”, but this hides both the image caption AND the alt text.
Strictly speaking the Alt text should not be shown, and should only appear in the image alt parameter.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Show stats to EditorThanks for that, for anyone else looking, it is under the “Traffic” tab.
Forum: Plugins
In reply to: [Custom Content Shortcode] “Greater than” value comparison?Thank you!
These work:
[if field=number value=5 compare=>]
[if field=number value=5 compare=”>=”]
[if field=number value=5 compare=”<=”]
[if field=number value=5 compare=more]
[if field=number value=5 compare=%] (I think this works as a Modulus operator)This does not
[if field=number value=5 compare=”<=”] (opening html tag)I now note that the “loop” section mentions:
compare – equal (default), not, more, less, or operator like < and >. If using taxonomy compare at the same time, use field_compare
Forum: Plugins
In reply to: [Custom Content Shortcode] “Greater than” value comparison?I tried the following, but it didn’t work.
[if field=number value>5]Big[/if]Have I understood the syntax correctly?
Forum: Plugins
In reply to: [Custom Content Shortcode] [if] leadings zero bug?Good workaround, but it shouldn’t be necessary?
Forum: Plugins
In reply to: [Custom Content Shortcode] Not working with elementorThe HTML IDs and classes may be imported, but the CSS selectors may not work, depending on the parent selectors.
Use your Browser’s Inspector tool to check whether the IDs and classes are imported (or look at the page source code). If they are present, you may need to duplicate and add new selectors and CSS in WordPress > Dashboard > Appearance > Customise > Additional CSS.