Candace
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Create an archive for gallery format postsOkay I added paging but when I go to page 2 it shows all the posts from page 1 only. What am I doing wrong?
<?php get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <ul id="gallery-list"> <?php $args = array( 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-gallery' ), 'operator' => 'IN', ) ), 'posts_per_page' => 12 ); $gallery = new WP_Query( $args ); ?> <?php if($gallery->have_posts()): while($gallery->have_posts()): $gallery->the_post();?> <li class="format-gallery"> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?> <h3><?php the_title(); ?></h3></a><?php printf( _n( ' (%1$s photos)', ' (%1$s photos)', $total_images, 'simple' ), number_format_i18n( $total_images ) ); ?> <?php endif; ?> </li> <?php endwhile; endif; ?> </ul><!-- #post --> <?php simple_content_nav( 'nav-below' ); ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>I just realized it was one of my plugins causing the trouble. I had previously uninstalled all plugins to see if it was the problem but it still didn’t work so I had reinstalled them but then I uninstalled a plugin I had made and it was working. So that was the trouble. I think there was something wrong with my plugin, it’s my first.
I also realized that on the original blog I was talking about the tiled gallery images are linked as below (the … is where I removed the full url and the data info)
<div class="tiled-gallery-item tiled-gallery-item-large"><a href=".../liam-became-a-wolf-scout/2013-02-15-19-36-49/"><img align="left" data-recalc-dims="1" title="Pinewood Derby Car" src=".../files/2013/02/2013-02-15-19.36.49.jpg?resize=328%2C196" ... style="width: 309px; height: 182px;"></a></div>I have them set to link to the media. When I click on the image nothing happens.
The blog I am having trouble with is a members only blog but I have several sites in a multisite and my blog I use for theme viewing is also having some problems with Tile Galleries and Carousel. Here is a post with a tile gallery http://themes.candaceduffyjones.com/some-of-my-photos/. The images are linked to attached image even though I have it set to media and it doesn’t use the Carousel.
Forum: Plugins
In reply to: [Featured Post] Custom Post TypesOkay I figured it out. I modified the custom post columns in the admin. I had to just add
"featured" => "Featured"to my column array.
Forum: Plugins
In reply to: [Featured Post] Showing non-featured postsYou shouldn’t use query_posts for multiple queries.
Show featured posts by…
<?php $args = array( 'featured' => 'yes' ); $featured = new WP_Query($args); if($featured->have_posts()): while($featured->have_posts()): $featured->the_post();?> Featured posts stuff... <?php endwhile; endif; wp_reset_postdata();?>Then show regular posts by…
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();?> Post content... <?php endwhile; endif; ?>Forum: Plugins
In reply to: [Mini twitter feed] [Plugin: Mini twitter feed] Can't get lists to workAn update for Mini Twitter showed up shortly after I posted, so I updated and it now works.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Adding to Custom PostsIt is in the file eshop-product-entry.php near the top.
change:
$array=array('post', 'page');Forum: Fixing WordPress
In reply to: Custom Post Type Not Using Single-custom But Index TemplateSolved it myself. I was using the same slug for my layouts custom post type and my creators custom category. Changed one of them and reset the permalinks and that fixed it.
Forum: Fixing WordPress
In reply to: Custom Post Type Not Using Single-custom But Index TemplateSorry I forgot about pastbin. The code for my functions.php is here: http://pastebin.com/YfYMRcUa
Forum: Fixing WordPress
In reply to: Custom Post Type Not Using Single-custom But Index TemplateI thought maybe it might be a plug-in so I just deactivated all of them but the single layouts page is still using the index template. Which btw does not display anything having to do with the content trying to be viewed so this is more than an inconvenience. I can’t even access the content or the comments. I just don’t understand why this might happen.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Adding to Custom PostsNow how do I get eshop custom fields to shop in my custom post type admin area? I have the code below but it doesn’t work:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: Ecommerce Plug-inWow, perfect! I wonder how I missed eShop before.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Adding to Custom PostsTHANKS! That did it!
Forum: Themes and Templates
In reply to: Display custom post type by custom taxonomy?I read that post and tried his methods but couldn’t get them to work. I ended up finding out that I was spelling my taxonomy wrong and that the code I had tried from this post: http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28 worked now that my spelling is correct.
Thanks for trying to help.