Dylan277
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple loops in chronological orderThanks to Fabianapsimoes as well, all the help is much appreciated.
Forum: Fixing WordPress
In reply to: Multiple loops in chronological orderThanks Keesiemeijer! That did it.
Forum: Fixing WordPress
In reply to: Multiple loops in chronological orderKeesiemeijer,
That didn’t work for me. I removed the second loop and placed your code in the way I assumed it should be, but no luck. :/The graphic element is completely gone. The code is still there, but it’s not showing up when I load the page. I’m just getting 12 post on the front.
Here is nearly all of the page code, the code directly below is located right under the get_header tag.
<?php // get the paged value for the query $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'posts_per_page' => 16, 'paged' => $paged ); // the query $the_query = new WP_Query( $args ); ?>FULL CODE:
<div id="widecolumn"> <?php if ( $the_query->have_posts() ) : ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="subfeature"> <div class="categorycont"> <div class="postcategory"> <span class="comcat"><?php the_category(', ') ?></span> </div><!--postcategory--> </div><!--categorycont--> <div class="commentcont"> <div class="postcomments"> <span class="comcat"><?php comments_popup_link('0', '1', '%'); ?></span> </div><!--postcomments--> </div><!--commentcont--> <div class="post_thumb"> <?php if ( has_post_thumbnail()) the_post_thumbnail('home-thumb'); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><div class="overlay"></div><!--overlay--></a> </div><!--post_thumb--> <div class="excerptcontainer"> <div class="titlecontainer"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div><!--titlecontainer--> <div class="excerpt"> <?php $myExcerpt = get_the_excerpt(); $tags = array("<p>", "</p>"); echo substr(get_the_excerpt(), 0,90); ?> </div><!--excerpt--> </div><!--excerptcontainer--> </div><!--subfeature--> <?php // Show graphic elements after fourth post. // starts with 0. (3 is fourth post) if ( $wp_query->current_post == 3 ) : ?> <div class="printedbanner"> <div class="printissues">PRINT ISSUES</div><!--printissues--><div class="seeall">SEE ALL</div><!--seeall--> </div><!--printedbanner--> <div class="printedcont"> <div class="issueprint1"> <div id="issuebox" class="issuebox"> <img id="image-3" src="http://paracinema.net/images/test/lg20.jpg"/> <span class="caption fade-caption"><h8>ISSUE <br>20</h8></span> </div><!--issuebox--> </div><!--issueprint1--> <div class="issueprint2"> <div id="issuebox" class="issuebox"> <img id="image-3" src="http://paracinema.net/images/test/lg19.jpg"/> <span class="caption fade-caption"><h8>ISSUE <br>19</h8></span> </div><!--issuebox--> </div><!--issueprint2--> <div class="issueprint3"> <div id="issuebox" class="issuebox"> <img id="image-3" src="http://paracinema.net/images/test/lg18.jpg"/> <span class="caption fade-caption"><h8>ISSUE <br>18</h8></span> </div><!--issuebox--> </div><!--issueprint3--> </div><!--printedcont--> <?php endif; ?> <?php endwhile; ?> <div class="navigation"> <div class="navigation_text"> <?php // example how to use next_posts_link() pagination function with a custom query using new WP_Query() next_posts_link( 'Older Entries', $the_query->max_num_pages ); previous_posts_link( 'Newer Entries' ); ?> </div><!--navigation_text--> </div><!--navigation--> <?php wp_reset_postdata(); ?> <?php else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?> </div><!--widecolumn-->Forum: Fixing WordPress
In reply to: Multiple loops in chronological orderHmmm, it doesn’t seem to be working. I’m getting an error related to closing the second loop. Here’s a simplified version of what I have:
<?php query_posts('showposts=4'); $ids = array(); while (have_posts()) : the_post(); $ids[] = get_the_ID();?> <div class="subfeature"> <!-- First Set of Posts --> </div><!--subfeature--> <?php endwhile; ?> <div class="printedcont"> <!-- Graphic Element --> </div><!--printedcont--> <?php query_posts( array( 'posts_per_page' => 12, 'offset' => 4 ) ); ?> <div class="subfeature"> <!-- Second Set of Posts --> </div><!--subfeature--> <?php endwhile; endif; ?>What am I doing wrong here?
Forum: Plugins
In reply to: Cart66 Issues – Items Not In CartI deactivated and deleted the cache plugin. I also had the
Bad Behavior plugin activated, which I now deactivated. I have been using a variety of different browsers while clearing caches.Things seem to be working fine now. Thanks for the link to Cart66’s plugin compatibility issues too. I don’t know why I still had an issue when I deactivated the cache plugin, maybe completely deleting it did the trick.
I really appreciate the help David, hopefully I won’t need anymore.
Forum: Plugins
In reply to: Cart66 Issues – Items Not In CartUnfortunately, that didn’t do the trick. I turned all the plugins off to test and no dice, still doing it. What’s strange is I feel like this is a new development. We had quite a few sales without any issue.
Is there anything else we can do?Forum: Plugins
In reply to: Cart66 Issues – Items Not In CartI’m having a similar problem. I’m using Cart66 Professional, we’re getting an error (readyState 4 status 403) when selecting the product on this page.
At some point it seemed to magically start working properly, however when the product is added to the cart, then deleted, a different product pops up in its place. In this case, a single issue was deleted and a full year subscription appeared. I’m unsure what to do, I thought it might have been a conflict with the WP Super Cache plugin, but I deactivated it and the issue is still there.
Any light you can shine on this would be hugely appreciated!
Forum: Fixing WordPress
In reply to: Site breaks due to use of absolute paths?Thanks for the insight, Esmi!
Forum: Fixing WordPress
In reply to: Site breaks due to use of absolute paths?Really, that’s it? There is no fix, and it’s the host’s service that’s the issue?
Can anyone recommend a host that works better with WordPress?
Forum: Fixing WordPress
In reply to: LinkWithin Not Showing Most PostsCheck out this plugin, very similar to Linkwithin. Works great for me and they were super helpful when I came across a problem.
http://wordpress.shaldybina.com/plugins/related-posts-thumbnails/
Best of luck!
Forum: Fixing WordPress
In reply to: LinkWithin Not Showing Most PostsI’ve sent something to LW too. No answer.
Forum: Fixing WordPress
In reply to: LinkWithin Not Showing Most PostsI have a similar problem. I imported a blog from blogger to wordpress and Linkwithin is showing the same 10 (or so) handful of new posts. I’ve got 400+ posts that aren’t even being linked to. Can anyone help out there?