Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Can you please explain the fix again? Uncheck which box?

    Thread Starter sbaroulette

    (@sbaroulette)

    Resolved!

    Hi. Still can’t get my featured video box to appear in my posts after applying the fixes. It does show on my pages. Here’s my single.php. Any help greatly appreciated.

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    ?>
    <?php include('headerblogdetail.php'); ?>
    
    <!-- Start Content -->
    <div id="content">
    	<!-- Start Main Content -->
    	<div id="main-content" class="move40">
    	<?php  if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
             <img src="<?php bloginfo('template_directory'); ?>/images/aboutus_title.png" alt="" width="73" height="62" class="img-left wp-post-image" /> 
    
    		<div id="post">
    		  <h1><?php the_title(); ?></h1>
    
    		<h4><?php echo get_post_meta($post->ID, 'tagline', true) ?></h4>
            <div class="clear"></div>
    
    				<?php
    
    /************Here's the old code**********
    if ( has_post_thumbnail() ) {
    	?> <?php the_post_thumbnail('thumbnailblog2', array('class' => 'img-left')); ?>  <?php
    } else {
    	// the current post lacks a thumbnail
    }
    */
    /************Here's the new code**********/
    if(get_post_meta(get_the_ID(), "_related-video", true) != ''){
       // show the video embed code if there is one
        echo get_post_meta(get_the_ID(), "_related-video", true);
    }else{
           if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
        // show the image thumb if there is one, and the post does not have a video
        the_post_thumbnail('thumbnailblog2', array('class' => 'img-left'));
       }
    }
    ?>
    
    		<?php the_content(); ?>
    
    			<div class="main-ruler"></div>
    
    			<div id="author-bio" class="highlight-box">
    			<div class="img-box-small fl">
    			<?php echo get_avatar( get_the_author_email(), '112' ); ?>
    			</div>
    				<h3><?php echo get_the_author(); ?> </h3>
    				<p><?php the_author_meta('description'); ?></p>
    			</div>
    
    			<?php comments_template(); ?>
    		</div>	
    
    			<?php endwhile; ?>
    
    	<?php endif; ?>
    
    	</div>
    	<!-- End Main Content -->
    	<!-- Start Sidebar -->
    
    <?php include('sidebarblog.php'); ?>
    
    	<!-- End Sidebar -->
    	<div class="clear"></div>
    </div>
    <!-- End Content -->
    
    <?php get_footer(); ?>

    Hi! I’ve tried the suggestions above yet I still see blank thumbnails when I scroll to the left or right of my gallery images.. please help! btw, I don’t see wrap=”both” option only: Circular, First, Last, None.
    When I select “None” I cannot scroll to the left of my 1st image but I can scroll infinitely to the right of my last image viewing only blank thumbnails. Ugh!

    Thanks!

    Hi! This is the answer I’ve been looking for except I need the fix for the JJ NextGen Carousel (jj_ngg_jquery_slider.php). I changed the code as above but it didn’t work for me. My code is below:

    // Add javascript
        $output .= "\n<script type=\"text/javascript\">";
        // Shuffle results on random order so even if page is cached the order will be different each time
        if($order == 'random' && $shuffle == 'true')
        {
          $output .= "\n  jQuery('ul#" . $html_id . "').jj_ngg_shuffle();";
        }
        $output .= "\n  jQuery('ul#" . $html_id . "').jcarousel(";
        if(count($javascript_args) > 0)
        {
          $output .= "{" . implode(",", $javascript_args) . "}";
        }
        $output .= ");";
    Thread Starter sbaroulette

    (@sbaroulette)

    Thanks for sharing!.. Will give it a try. Does it open a new window? ??

    Thread Starter sbaroulette

    (@sbaroulette)

    Thanks so much! I’m learning a lot here. Putting my url in the Alt&Title field did the trick. Hopefully I can set my target=blank, then I’ll be good.

    Another issue I’m having is only being able to use NextGen Gallery on my main site within my MultiSite setup. I need to be able add to my other sites. I’ve read that is an issue but I don’t understand why bc it’s in the same db. Can you shed any light on this?

    Error: NextGEN Gallery : Tables could not created, please check your database settings

    Thanks again to you both for your help!

    Hi! Can someone who’s got it working please post their gallery.php so I can see how to link my images to external websites? I added the custom field ‘link’ but I’m having no luck and need a fix! Thanks!

    Thread Starter sbaroulette

    (@sbaroulette)

    Fixed…You’re Awesome!! Thanks so much for your help!

    Thread Starter sbaroulette

    (@sbaroulette)

    Sorry I’m confused… I thought I wanted it to be empty so that the fallback will kick in.. I am not expecting a value on the homepage bc I have no custom menu for it.

    Thread Starter sbaroulette

    (@sbaroulette)

    Sure. I get the following on my homepage:
    int(1)
    string(0) “”

    Thread Starter sbaroulette

    (@sbaroulette)

    No luck.. I still see the main menu on the homepage on all other pages without custom field. Is my code/syntax correct?

    <?php  $menu_args = array(
    		'fallback_cb' => false,
    		'container' => 'div',
    		'container_class' => ' widget_wrap widget_nav_menu',
    		'theme_location' => 'primary',
    		'menu' => get_post_meta( $post->ID, 'MenuName', true)
    	);
     	$field_value = 'MenuName';
    	if( isset( $field_value ) && ! empty( $field_value ) ) {
    		wp_nav_menu( $menu_args );
    	}
    ?>

    Thread Starter sbaroulette

    (@sbaroulette)

    Btw, here’s what I have in my sidebar.php

    <div id="sidebar">
        <div class="widgets"><ul>  
    
                <?php wp_nav_menu( array( 'fallback_cb' => '', 'container' => 'none',  'container_class' => 'menu-header',  'theme_location' => 'primary', 'menu' => get_post_meta( $post->ID, 'MenuName', true) ) ); ?>
                <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) :  ?>
                <?php endif; ?></ul>
                </div>
        </div>

    Not sure how to incorporate into the dynamic sidebar. Any help?

Viewing 13 replies - 1 through 13 (of 13 total)