Tagged Questions
0
votes
2answers
87 views
Can I the caption shortcode to set caption to a data attribute, and with the image's alignment intact?
I want to output an image caption in this kind of format:
<img class="alignleft size-medium wp-image-316" alt="Image Title" data-caption="Here lies the image caption" ...
2
votes
1answer
1k views
Customizing gallery shortcode in 3.5
I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
1answer
594 views
Use a shortcode to display custom meta box contents
Is this possible? If so, can someone point me towards a clear tutorial? I have a column of content I want to float right of the_content, so I'd like to be able to use a shortcode to put that content ...
0
votes
2answers
126 views
Where to upload my new custom ShortCode in Separate .php file?
I wrote my first ShortCode in a file called: myShortCodes.php.
Does the add_shortcode go in the same PHP file as the ShortCode itself?
Where do I upload it? How does WordPress know to look in my ...
4
votes
1answer
1k views
Styling Shortcodes in Visual Editor
Does anyone know how to style the visual editor so that when specific shortcodes are used they are replaced with an image within the visual editor?
I have found that many users screw up the shortcode ...