Open luckydev0 opened 6 years ago
Could you give me a full example how you content looks like and what's the current result and what you are expecting to happen? Thanks.
On 13.12.2017 at 20:30 Uhr, notifications@github.com (Alexander Schneider) wrote:
Could you give me a full example how you content looks like and what's the current result and what you are expecting to happen? Thanks.
Dear Alexander
I have a plugin installed, that shows or hides parts of content by shortcodes:
plugin: "Shortcodes to show or hide content"
works fine e.g. for content like:
This content here should be visible (no restriction)
[time-restrict on="2018-04-01"]
This part has been restricted before more tag
<!--more-->
This part has been restricted after more tag
[/time-restrict]
output as expected:
This content here should be visible (no restriction)
if UAM has no restrictions on Users (allows full access)
Now if we plugin yours UAM and set restrictions to logged in Users by applying:
Show content before <!--more--> tag (*) Yes
For the example page above we would expect no change at all, since the content from time restrict is currently omitted.
But the output will change to:
This content here should be visible (no restriction)
This part has been restricted before more tag
To see additional content you have to be logged in
[Login mask]
This clearly demonstrates, that UAM has ignored the shortcode of another plugin, I believe you get the content of wordpress that has been untreated by shortcodes but filters the shortcode tags out.
Or UAM divides the content into the half before more and after more, and filters out any shortcode afterwards.
I hope this description is precise enough that you can get the idea of my problem.
Best regards Lukas
I apply another plugin that allows me to introduce datetime based restrictions on post content by shortcodes. Since post_content includes the full content including all shortcodes, but has not executed the shortcode restrictions, the controller will always find the tag even if this would have been restricted by some shortcodes. Is it possible to execute the shortcodes on post_content before PostController searches for the '//' string? I think this would be helpful for users like me.