pcglenn
Forum Replies Created
-
Worked perfectly. Thank you!
Marking this resolved.
Following up: the issue was exactly what you thought it was. I contacted my hosting provider and they replied:
Upon investigating the issue we had found that a mod-secerity rule was triggering while saving the changes. We have now disabled mod-security for your domain and we were then able to successfully save the changes that were made in tablepress
It now works. Thanks again for your assistance!
Thank you for your prompt response. I’ll get in touch with my hosting provider.
Forum: Fixing WordPress
In reply to: Pagination Not Workingalchymyth, you’re awesome. That did the trick, and you’re quicker than the developer.
Thank you so much for taking the time to look at this. I continue to study this stuff, but sometimes it still baffles me. Thanks for the link to WP_Query() vs. query_posts() as well.
Forum: Fixing WordPress
In reply to: Pagination Not WorkingThank you for taking the time to reply. As I mentioned previously, I have reached out to the developer for help, but I thought the community here may benefit from the discussion as well.
I have read through the pertinent parts of the codex. I fiddle a bit with coding but am more of a HTML/CSS/Javascript guy, and find much of PHP stuff confusing. Thus, I consult the experts. 🙂
The full code for the page template is:
<?php /* Template Name: Episodes */ get_header(); ?> <!-- begin main --> <section class="main"> <h1>BLOG</h1> <?php // WP 3.0 PAGED BUG FIX if ( get_query_var('paged') ) $paged = get_query_var('paged'); elseif ( get_query_var('page') ) $paged = get_query_var('page'); else $paged = 1; $args = array( 'post_type' => 'post', 'paged' => $paged ); query_posts($args); ?> <?php query_posts('cat=3'); ?> <?php if (have_posts()) : $count = 0; ?> <?php while (have_posts()) : the_post(); $count++; global $post; ?> <!-- begin .post --> <article <?php post_class(); ?>> <?php if(of_get_option('posts_layout') == 'pexcerpt') { ?> <!-- begin .post-thumb --> <div class="post-thumb"> <?php if(has_post_thumbnail()): the_post_thumbnail('large', array('class'=>'blog-thumb')); else: ?><?php endif; ?> </div> <!-- end .post-thumb --> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- begin .post-meta --> <div class="meta"> <span class="post-comments icon-bubbles"> <a href="<?php echo get_comments_link() ?>"> <?php $comments_count = get_comments_number( $post_id ); echo $comments_count; ?> </a> </span> <span class="post-author"><em><?php _e('by','site5framework') ?></em> <?php the_author_posts_link(); ?></span> <span class="post-category"><em><?php _e('in','site5framework') ?></em> <?php the_category(', '); ?></span> <span class="post-date"> | <?php echo get_the_date(M); ?> <?php echo get_the_date(d); ?>, <?php echo get_the_date(Y); ?></span> </div> <!-- end .post-meta --> <div class="post-content"> <?php global $more; $more = 0; the_content(__('Read More','site5framework')); ?> </div> <?php } else { ?> <!-- begin .post-thumb --> <div class="post-thumb"> <?php if(has_post_thumbnail()): the_post_thumbnail('single-post-image', array('class'=>'blog-thumb')); else: ?><?php endif; ?> <!-- begin .post-meta --> <div class="meta"> <span class="post-comments icon-bubbles"> <a href="<?php echo get_comments_link() ?>"> <?php $comments_count = get_comments_number( $post_id ); echo $comments_count; ?> </a> </span> <span class="post-author"><em><?php _e('by','site5framework') ?></em> <?php the_author_posts_link(); ?></span> <span class="post-category"><em><?php _e('in','site5framework') ?></em> <?php the_category(', '); ?></span> <span class="post-date"> | <?php echo get_the_date(M); ?> <?php echo get_the_date(d); ?>, <?php echo get_the_date(Y); ?></span> </div> <!-- end .post-meta --> </div> <!-- end .post-thumb --> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(__('Read More','site5framework')); ?> <?php } ?> </article> <!-- end .post --> <?php endwhile; ?> <!-- begin #pagination --> <?php if (function_exists("emm_paginate")) { emm_paginate(); } else { ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('Older') ?></div> <div class="alignright"><?php previous_posts_link('Newer') ?></div> </div> <?php } ?> <!-- end #pagination --> </section> <!-- end section --> <?php endif; ?> <?php //get_sidebar(); ?> <div class="clear"></div> <?php get_footer(); ?>Thanks again for any insight you may have.