-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How i show same shortcode value in different place #511
Comments
Hello, Similar issue #497 Imagine you have
How will you get the value of a specific xyz shortcode? If there was a function to access shortcodes db values, how will you specify in function parameters which shortcode you want to access? |
Hi @moldcraft Maybe i cant tell you clearly :( let me clear. I wanna print xyz $atts another place so we can get the same result which saved in xyz shortcode. i just need to enter xyz shortcode $atts so i can use this anywhere Thanks for your help |
Sorry, I don't understand. |
@xperter Please check the solution here #275 (comment) I think @moldcraft explained it very good. If you have more than one instance there is no way that your external function will know from which shortcode to get the options. |
@pe6o Unyson team doing great job. Thanks brothers |
Alright, I am making a Portfolio Grid shortcode with an AJAX "Load More" button. The problem is that when the button is pressed I can't work with the options field of the shortcode. I am sending some variables with JS and Or is there? |
<div data-atts="<?php echo fw_htmlspecialchars(json_encode($atts)); ?>"></div> then using those in javascript isn't a solution? |
Hi
I have a shortcode and i like to print same saved value in another place.
Like i have shortcode name xyz and i need get the save value (not options) which saved in db.
I have tried with fw_get_db_ext_settings_option() but nothing found any value in shortcodes
Is it possible to print another place ??
Thanks for your help
The text was updated successfully, but these errors were encountered: