I have a working shortcode, ie like this:
[shortcode_name search="" show="url, color, size"]
In this shortcode if I insert for example an email inside search (search="test@test.com") it displays all entries from that e-mail. If I don't write anything, it displays all entries from all e-mails.
I would like to insert a variable like search="'.$user_email.'" to display all entries of that logged user.
How can I use that variable?
I tried also with a shortcode that generates the e-mail, but how to use a shortcode inside another shortcode?
I tried [shortcode_name search="[user_email_shortcode]" show="url, color, size"]
but of course it doesn't work.
[shortcode_name]
created by you? If not, are you able to create your own shortcodes? (You could just create a[shortcode_name_loggedIn]
that basically returns the other shortcode with the email pre-filled) – kero Feb 5 at 15:18