Subscription pack info
-
Hi, I recently opened a question that someone has stated as ‘resolved’. However, it is not resolved and therefore I am adding it again.
What I am trying to accomplish is something where I can customize what text to show the user. So I want to show them the following sentence:
‘You currently have X posts left.’
In PHP that would translate to
<?php $posts_left = some_function(); echo "<p>You currently have {$posts_left} posts left.</p>"; ?>So essentially what I’m asking is; what php function do I need to get the amount of posts/products left as a variable in php?
Do you have any idea how this is possible? The shortcode just doesn’t work for me, even after disabling all plugins and custom css/php. It shows up on the top left, outside of the row and column I have put the code into. It is unusable at the moment.
See how it looks for yourself. https://prnt.sc/1iosmrt.
I would like to place it underneath the title ‘subscriptions’ but somehow the info is put at the top of my page.
Thanks in advance!
The topic ‘Subscription pack info’ is closed to new replies.