polarracing
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] display all comments of current end userUse [LOOP] with “author”.
[loop type=your-post-type author=YOUR-AUTHOR]
Forum: Plugins
In reply to: [Custom Content Shortcode] FOR shortcode, parameter for specific post?If you need the taxonomy of a specific post you do not need
[FOR]
. You can use[content taxonomy ...]
instead.Ok, I see. I missed the part with the shortcode editor.
Not sure with [if] in the shortcode template I use [loop] inside there only. Gives me the one result I need and has no issues with empty code lines.
Also I would check if removing the WYSIWYG from the used field may help.
- This reply was modified 4 years, 4 months ago by polarracing.
If you seperate the code and the output you can keep your code radable while getting the output you need.
I even use
spacestab in my code to show seperate levels of nesting. But as the code is not in the output area, this can be stripped to whatever without affecting my output.- This reply was modified 4 years, 4 months ago by polarracing.
In the Divi Theme this is always an issue. It even adds in some cases <p> around [if] clauses. Thats whay I use the seperation approach.
Seperate code and output.
Use your [if] clauses to fill variables instead of returning the result direct.
….[if check={TYPE} value=”new”]
[set my-var1]
[global][data key=”course-information-new” field=”total_fees”][/global][/set]
[else]….Then you do not have the line breaks from [if] stuff in your output.
And if you need to format use
[set my-var][format][get my-var][/format][/set]
after filling your var with the raw value.I normally seperate the code form the output. First run the code and fill variables, the start the html section and use the always the same variable to return different content.
As the variables are available on the hole page, you can set you code somewhere at the top of the page and use the results all over the page.
- This reply was modified 4 years, 4 months ago by polarracing.
- This reply was modified 4 years, 4 months ago by polarracing.
- This reply was modified 4 years, 4 months ago by polarracing.
Forum: Plugins
In reply to: [Custom Content Shortcode] Greater than or equal to todayI have no issue with that, its just easier to point the finger to the issue.
Yeah, its a great tool. I use it to run a multi language site. It saves from playing around with templates, queries and php code.
Forum: Plugins
In reply to: [Custom Content Shortcode] Greater than or equal to todayOk, next time you could specify, that you want to achieve this in a [if] clause.
All our suggestions was for a [loop].
??
Forum: Plugins
In reply to: [Custom Content Shortcode] Heads up – Incompability with “Post Types Order”Good thought.
Maybe I did not try all options as I realized the issue very late and had to finish the page.
And the Simple Custom Post Order Plugin did solve all my issues – without any need to edit functions.php or other coding.
Have you tried to fill variables and use them for output.
So you could avoid any code related spaces in your output.
Forum: Plugins
In reply to: [Custom Content Shortcode] Greater than or equal to todayAs only the date is checked – future means today and from there on.
If you need it on an hourly level use
future-time
Forum: Plugins
In reply to: [Custom Content Shortcode] Greater than or equal to todayIf the event should be in the future and today:
[loop type=YOUR_TYPE field=YOUR_DATE_FIELD value=future .....]
if future but not not today:
[loop type=YOUR_TYPE field=YOUR_DATE_FIELD value='future not today' .....]
- This reply was modified 4 years, 4 months ago by polarracing.
- This reply was modified 4 years, 4 months ago by polarracing.
- This reply was modified 4 years, 4 months ago by polarracing.
Forum: Plugins
In reply to: [Custom Content Shortcode] Heads up – Incompability with “Post Types Order”As this is a heads up and not a real support issue for this plugin I close the this topic right away.
Forum: Plugins
In reply to: [Popups for Divi] Close Popup with buttonSolved.
I use DiviArea.hide() now. Works fine.
Forum: Plugins
In reply to: [Popups for Divi] Minor CSS fixThanks