| bio | website | anderly.com |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 2 months |
| seen | Apr 3 at 1:24 | |
| stats | profile views | 10 |
|
Mar 17 |
comment |
Gallery Only Displaying One Thumbnail So, it sounds like something else is filtering them out. Can you try the code above on a new page or post and a new gallery and see if that works? Maybe it is something specific to the gallery you have setup or something with your setPostViews function. |
|
Mar 17 |
comment |
Wordpress 3.5 grab first image from gallery Glad it worked for you! |
|
Mar 12 |
comment |
Gallery Only Displaying One Thumbnail Ok, in that case, it sounds like there is truly only one attachment. Can you verify whether or not those other attachment ids actually exist under Media? Or if you have access to the db via phpMyAdmin, you could query the post table directly for those IDs. One other way to check for their existence is to see if you can get to these URLs: /wp-admin/post.php?post=2245&action=edit
/wp-admin/post.php?post=2246&action=edit
/wp-admin/post.php?post=2247&action=edit |
|
Mar 12 |
comment |
Gallery Only Displaying One Thumbnail drop that in your page template to see if it spits out the correct count of attachments in the gallery which should be 3 given your example of [gallery link="post" ids="2245,2246,2247"] |
|
Mar 12 |
answered | Gallery Only Displaying One Thumbnail |
|
Mar 12 |
awarded | Commentator |
|
Mar 12 |
comment |
Wordpress 3.5 grab first image from gallery Another option would be to explode the list of IDs like this: $ids = explode(',', $shortcode_args["ids"]); Then, you can use $ids[0] in the call get_posts instead of passing in all the IDs with $shortcode_args["ids"]. |
|
Mar 12 |
comment |
Wordpress 3.5 grab first image from gallery So, using the sample above, are you saying that $attachments[0] above is the last image in the list of IDs? |
|
Mar 9 |
comment |
Wordpress 3.5 grab first image from gallery Glad that worked! If that answers your question, would you mind marking it as "answer" in addition to the plus one? Thanks! |
|
Mar 6 |
comment |
Ordering of gallery images without using shortcode in theme Cool...glad you got it working! |
|
Mar 5 |
comment |
Ordering of gallery images without using shortcode in theme Glad that helped. If that answers your question, would you mind marking it as answer in addition to the +1? Thanks! |
|
Mar 4 |
answered | How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()? |
|
Mar 4 |
answered | Wordpress 3.5 Gallery Menu Order not set? |
|
Mar 4 |
answered | Ordering of gallery images without using shortcode in theme |
|
Mar 4 |
answered | Wordpress 3.5 grab first image from gallery |
|
Dec 3 |
awarded | Student |
|
Nov 24 |
awarded | Popular Question |
|
Jun 5 |
awarded | Supporter |
|
May 23 |
comment |
Google Apps login in wordpress What I did was modify the code to wrap the login in the following: if(get_option('users_can_register')) { //main social login code here } This makes the plugin respect the WordPress general setting regarding whether or not users can register, rather than auto-registering any user that comes to your site. |
|
Apr 17 |
awarded | Teacher |