Greg Rickaby
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: W3 Total Cache] W3TC Causing wierd issues and slownessSweet, I’ll look into it. Thanks!
Forum: Plugins
In reply to: [Plugin: WP Calendar] Thank youCool, can’t wait to start using your plugin
Forum: Plugins
In reply to: [Plugin: WP Calendar] Thank youI run Thesis, and it loads jQuery in the footer directly rather than the wp_enqueue_script. The plugin “Sexy Bookmarks” (among others) gives me a check box to disable jQuery completely.
Forum: Plugins
In reply to: [Plugin: W3 Total Cache] W3TC Causing wierd issues and slownessI’m having similar issues, I too am running Google XML sitemap.
Every 4th or 5th page-view with Internet Explorer and Safari renders a completely blank page, or a page with no css, or a page with no images. Totally random.
When I disable the CDN capabilities in W3 the issue goes away.
Forum: Plugins
In reply to: [Plugin: WP Calendar] Thank youBTW: Can you please give us the option to disable loading jQuery. I already have jQuery loaded. ??
Forum: Fixing WordPress
In reply to: problems limiting post titlesThis also works (I use it all the time). Just change “10” to meet your needs.
// Post Title Limit function short_title() { $limit = 10+1; $title = explode(' ', get_the_title(), $limit); array_pop($title); $title = implode(" ",$title).$ending; echo $title; }
Excerpt’s too:
// Excerpt Word Limit function excerpt($teaser_word_count) { $limit2 = 15+1; $excerpt = explode(' ', get_the_excerpt(), $limit2); array_pop($excerpt); $excerpt = implode(" ",$excerpt).$ending; echo $excerpt; }
After declaring these functions, I use them in sub-loops:
<div class="story local_news"> <?php $sub_loop_2 = new WP_Query("cat=3&showposts=1"); while ($sub_loop_2->have_posts()) : $sub_loop_2->the_post(); ?> <div class="imgcont left"> <div class="thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array(187,105) ); ?></a></div> </div> <div class="txtcont right"> <h2><a href="<?php the_permalink(); ?>"><?php short_title(); ?></a></h2> <p><?php excerpt($teaser_word_count) ?> [...]</p> <p class="permalink"><a href="<?php the_permalink(); ?>">READ MORE <img src="<?php bloginfo('template_url'); ?>/custom/images/arrow.png" /></a></p> </div> <?php endwhile; ?> </div>
Forum: Fixing WordPress
In reply to: PHP Form: Select CategoriesSolved it…
<select class="aselect" id="<?php echo $value['id']; ?>" name="<?php echo $value['id']; ?>"> <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } $cats = get_categories('hide_empty=0'); foreach($cats as $cat) { ?> <option value="<?php echo $cat->cat_ID; ?>"<?php selected($tt_catbox_1, $cat->cat_ID); ?>><?php echo $cat->cat_name; ?></option> <?php } ?> </select>
Forum: Fixing WordPress
In reply to: change installation from ,org to .comWP Settings –> General –> WordPress Address & Blog Address
OR
Get into the database (via phpMyAdmin) and go to wp-options –> siteurl and change it there.
Forum: Fixing WordPress
In reply to: Sticky Post Conditional PHPHaha! Been there done that! ??
Thank you, this worked very well.
Forum: Fixing WordPress
In reply to: Sticky Post Conditional PHPHere is the code (with yours included) inside a function I’m building for a Thesis Skin.
Here is the process:
1. I want this sub-loop to check for stickies (and it does)
2. If there is a sticky, print it
3. If not, do nothing<?php function tt_emergency_post_html() { global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } $sticky = get_option('sticky_possdts'); if ( ! empty($sticky)) { rsort( $sticky ); $sticky = array_slice( $sticky, 0, 1); query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) ); ?> <div id="emergency"> <?php if (have_posts()) ?> <?php while (have_posts()) : the_post(); ?> <?php images('1', '400', '', 'alignleft', true); ?> <h1>BREAKING NEWS</h1> <h2><?php the_title(); ?></h2> <p><?php excerpt('50'); ?>...<br /><a href="<?php the_permalink(); ?>"><?php echo thesis_teaser_link_text(); ?></a></p> <?php endwhile; ?> </div> <?php } }
With the code above it doesn’t do either…
I was trying (and failing miserably):
<?php function tt_emergency_post_html() { global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } $sticky = get_option('sticky_posts'); rsort( $sticky ); $sticky = array_slice( $sticky, 0, 1); query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) );?> <?php if($sticky >'0') { ?> <div id="emergency"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php images('1', '400', '', 'alignleft', true); ?> <h1>BREAKING NEWS</h1> <h2><?php the_title(); ?></h2> <p><?php excerpt('50'); ?>...<br /> <a href="<?php the_permalink(); ?>"><?php echo thesis_teaser_link_text(); ?></a></p> <?php endwhile; ?> </div> <?php else: ?> NO STICKY! <?php }?> <?php }
Forum: Plugins
In reply to: Featured Content Gallery (FCG) and Thesis ThemeHere is how to get FCG 3.2.0 working with Thesis 1.5.1 and WordPress 2.8.1
Forum: Fixing WordPress
In reply to: Conditional tag for blog page not workingSAME HERE! Great post…and lame tag: “is_home()” seriously? LOL
Forum: Fixing WordPress
In reply to: No image into RSS feedI have the same problem. I even installed the MediaRSS plugin. I see the attached image, but it doesn’t just ‘show up’ in any RSS reader. ??
Forum: Fixing WordPress
In reply to: Images don’t retain links when used in galleryIt does work! THANK YOU!
It was on line 450.
Is there anyway to make the link open in a new window? ??
Forum: Installing WordPress
In reply to: The version 2.6 will not work! Dont install!Thanks Otto & Eddie. This IS why Open-Source software and it’s communities are so incredible.