Tagged Questions
1
vote
1answer
26 views
Shortcode for a link and thumbnail
<?php
// Add Shortcode
function blog_shortcode( $atts ) {
// Attributes
extract( shortcode_atts(
array(
'id' => '',
), $atts )
);
// Code
if (has_post_thumbnail()) {
$url ...
0
votes
0answers
12 views
Random Image Shortcode [duplicate]
I have a great little shortcode for displaying random images. Works wonderflly--however, the output defaults to the upper corner of the main container element--as though it is being written after the ...
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" ...
0
votes
1answer
119 views
Use full size images in a specific gallery
Thumbnails are displaying as 100px however the full size is 130px which is what I want.
I want this only in one specific gallery.
Also would like to link each gallery thumbnail image to an external ...
2
votes
3answers
205 views
get attributes/part of the gallery shortcode
I'm trying to grab all image id's that are associated with the [gallery] shortcode that are listed as exclude. For example: if my post has [gallery exclude="1,2,3"] I'd like to get a variable that ...
2
votes
1answer
292 views
How do i reference the theme path in pages for images?
How do i reference images in a page/post without installing the php plugin or typing it out manually like this:
domain.com/wp-content/themes/mytheme/image.jpg
0
votes
1answer
108 views
Don't show images inserted into content
I'm using a lightbox plugin to display my post images with [gallery], it works
but those images show up in the content area too.
So there are thumbnails and full size of same image.
How can i hide ...
1
vote
0answers
58 views
NextGEN Gallery- using shortcode for different galleries on different pages [duplicate]
Possible Duplicate:
conditional shortcode not working
I have a salon website with a gallery page wherein the user must first select a stylist prior to viewing their individual gallery.
I ...
0
votes
0answers
14 views
How do keep caption from displaying on gallery short code? [duplicate]
Possible Duplicate:
How to manually fix the WordPress gallery code using PHP in functions.php?
I'm using the gallery shortcode and I put in display=none thinking that would keep the ...
-2
votes
2answers
1k views
How can I make all gallery images to open in a new window?
How can I make all gallery images to open the high resolution image in a new window?
0
votes
1answer
1k views
Turn off image captions in gallery view?
I've set up my loop-attachment.php to show the gallery of thumbnails above the main, selected image using this code from the WordPress Codex:
<?php
$gallery_shortcode = '[gallery id="' . ...
0
votes
1answer
285 views
how to stop a gallery slideshow
I am using the Dynamix WP theme. I have three images displaying in a loop with fade effect. The images continue to fade from one to other. However I would like to stop this effect once all images have ...
0
votes
1answer
695 views
How to display a shortcode caption somewhere other than the_content
I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar.
The images aren't uploaded to wordpress, but they're linked-to using the ...