Problem: I have a custom shortcode that uses the global $post object to set the post ID, but I want to use this shortcode to display information about another post.
Solution: Use a shortcode attribute to pass in the other post's ID.
Relevant Documentation:
https://codex.wordpress.org/Shortcode_API
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Ce sujet est une subdivision de https://toolset.com/fr/forums/topic/bracket-displayed-near-every-image-gallery/
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Ce sujet contient 5 réponses, a 2 voix.
Dernière mise à jour par Il y a 6 années.
Assisté par: Christian Cox.