Forum Replies Created

Viewing 15 replies - 61 through 75 (of 83 total)
  • Sweet, I’ll look into it. Thanks!

    Thread Starter Greg Rickaby

    (@gregrickaby)

    Cool, can’t wait to start using your plugin

    Thread Starter Greg Rickaby

    (@gregrickaby)

    I 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.

    I’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.

    Thread Starter Greg Rickaby

    (@gregrickaby)

    BTW: Can you please give us the option to disable loading jQuery. I already have jQuery loaded. ??

    This 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>
    Thread Starter Greg Rickaby

    (@gregrickaby)

    Solved 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>

    WP Settings –> General –> WordPress Address & Blog Address

    OR

    Get into the database (via phpMyAdmin) and go to wp-options –> siteurl and change it there.

    Thread Starter Greg Rickaby

    (@gregrickaby)

    Haha! Been there done that! ??

    Thank you, this worked very well.

    Thread Starter Greg Rickaby

    (@gregrickaby)

    Here 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 }

    Here is how to get FCG 3.2.0 working with Thesis 1.5.1 and WordPress 2.8.1

    https://foxyurl.com/oJz

    @seanaus120

    SAME HERE! Great post…and lame tag: “is_home()” seriously? LOL

    I 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. ??

    Thread Starter Greg Rickaby

    (@gregrickaby)

    It does work! THANK YOU!

    It was on line 450.

    Is there anyway to make the link open in a new window? ??

    Thanks Otto & Eddie. This IS why Open-Source software and it’s communities are so incredible.

Viewing 15 replies - 61 through 75 (of 83 total)