Forum Replies Created

Viewing 15 replies - 1 through 15 (of 41 total)
  • @mossifer did you ever figure this out?

    Thread Starter venomshot629

    (@venomshot629)

    Thank you!

    Thread Starter venomshot629

    (@venomshot629)

    That is working now and pulling all of the correct thumbnails, thank you!

    It seems that it is operating category specific, which I am actually okay with, but would the only way to change that be to change my permalink structure to remove the category from the permalink?

    Thread Starter venomshot629

    (@venomshot629)

    Btw, the only reference to thumbnails in my functions.php is add_theme_support( 'post-thumbnails' );

    Not sure if that may assist in diagnosing but figured I’d mention.

    Thread Starter venomshot629

    (@venomshot629)

    Here is the single php code.

    <?php get_header() ?>
    
    <?php $prevPost = get_previous_post(true); $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(100,100) ); ?>
    <?php $nextPost = get_next_post(true); $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(100,100) ); ?>
    
    	<div id="container">
    
    		<div id="content">
    
    <?php the_post(); ?>
    
    <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>">
    
    	<h1 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h1>
    
    	<h2 class="subheading"><?php the_subheading(); ?></h2>
    <div class="clear"></div>
    
    <div class="entry-content"><?php the_content(); ?>
    <div class="excerpt"><?php
    	if($post->post_excerpt != '') :
        	echo '<div id="summary">';
        	echo '<font color="#999999"><b>Read More :</b><br>';
        	the_excerpt();
        	endif; ?>
    </font></div>
    
    <div class="clear"></div>
    
    <!-- VS HORIZONTAL SOCIAL BOX -->
    <div class="entry-meta" id="respond">
    <span class="vssbhz">
    <div class="vsboxhzf">
    <fb:like href="<?php the_permalink(); ?>" send="true" layout="button_count" show_faces="false" font="arial" width="100"></fb:like>
    </div>
    <div class="vsboxhzt">
    <a href="http://twitter.com/share?url=<?php urlencode(the_permalink()); ?>&counturl=<?php urlencode(the_permalink()); ?>" class="twitter-share-button" data-via="XXXXXSITETWITTERHEREXXXX"></a>
    </div>
    <div class="vsboxhzg">
    <div class="g-plusone" data-size="medium"></div>
    </div>
    <div class="vsboxhzp">
    <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_subheading(); ?>" class="pin-it-button" count-layout="horizontal"></a>
    </div>
    </span>
    </div>
    <div id="comments" style="clear:both;"></div>
    
    					<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'sandbox') . '&after=</div>') ?>
    				</div>
    							</div><!-- .post -->
    				<div style="clear"></div>
    <hr style="border:2px solid #000000;align:left;margin-top:0px;margin-bottom:20px;margin-left:0px;" width="100%" />
    <font size="4"><b>Respond with your Facebook account:</b></font>
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<?php the_permalink(); ?>" num_posts="2" width="860"></fb:comments>
    <hr style="border:1px solid #CCCCCC;align:left;margin-top:-40px;margin-bottom:20px;margin-left:0px;" width="100%" />
    
    <div id="nav-below" class="navigation">
    		<div class="nav-previous">
    				<span class="navprevpic"><?php previous_post_link('%link',"$prevthumbnail", true); ?></span>
    				<span class="navprevlink"><?php previous_post_link('%link', '<span class="meta-nav">&laquo;</span> %title') ?></span>
    		</div>
    		<div class="nav-next">
    				<span class="navnextlink"><?php next_post_link('%link', '%title <span class="meta-nav">&raquo;</span>') ?></span>
    				<span class="navnextpic"><?php next_post_link('%link',"$nextthumbnail", true); ?></span>
    		</div>
    </div>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php get_sidebar() ?>
    <?php get_footer() ?>
    Thread Starter venomshot629

    (@venomshot629)

    Thanks for the quick response. Just moved them to the top just below where the header is called, still no luck.

    Please have a look at this post, the same code as the others yet no thumbnails: http://pinmystyle.com/w/girls-style/pink-sweater-dress-style-leopard-pants-outfit/

    Also the thumbnails are not matching the content of the posts, occasionally pulling a thumbnail from 2 posts ahead. Would it help to post my entire single.php?

    Thread Starter venomshot629

    (@venomshot629)

    Alright, thank you for all of your help!!!

    For the record, here is the final code I will be using:

    <?php $previousPost = get_previous_post( true );
    $vspreviousurl = 'http://www.ayedom.com/i/arrow_left_big_alt.png';
    if (has_post_thumbnail( $previousPost->ID ) ) {
        $previousthumbnail = get_post_thumbnail_id( $previousPost->ID );
        $vspreviousurl = wp_get_attachment_thumb_url( $previousthumbnail );} ?>
    
    <?php $nextPost = get_next_post( true );
    $vsnexturl = 'http://www.ayedom.com/i/arrow_right_big_alt.png';
    if (has_post_thumbnail( $nextPost->ID ) ) {
        $nextthumbnail = get_post_thumbnail_id( $nextPost->ID );
        $vsnexturl = wp_get_attachment_thumb_url( $nextthumbnail );} ?>
    
    <div id="nav-below" class="navigation" style="position:absolute !important;top:275px !important;width:1000px !important;">
    				<div class="nav-previous" style="display:block;width:100px;height:100px;margin-left:-20px !important;background:url('<?php echo $vspreviousurl; ?>') 0 0 no-repeat;"><?php previous_post_link('%link', '<img src="i/arrow_left_big.png" class="fadeaway" />') ?></div>
    				<div class="nav-next" style="display:block;width:100px;height:100px;margin-right:-20px !important;background:url('<?php echo $vsnexturl; ?>') 0 0 no-repeat;"><?php next_post_link('%link', '<img src="i/arrow_right_big.png" class="fadeaway" />') ?></div>
    			</div>
    Thread Starter venomshot629

    (@venomshot629)

    That works perfect! Thank you!!

    Last request that I just thought of..:

    Is there a php snippet I can include, where if there is no next or previous post, nothing shows at all? For example, Im guessing a 3 way statement: the featured image if there is one, the placeholder .png if there is no associated feature image, and a plain white background (or display:none) if there is no next post to go to?

    I believe that would be the last thing to wrap it all up!

    Thread Starter venomshot629

    (@venomshot629)

    Now this is my full code; if you click left or right a couple of times from http://ayedom.com/eastman-leather-clothing-aviators-kit-bag/ to a post without a set featured image, it is not showing my fallback image “arrow_left_big.png”, the div background is still blank.

    <?php $previousPost = get_previous_post( true );
    $vspreviousurl = 'http://www.ayedom.com/i/arrow_left_big.png';
    if (has_post_thumbnail( $previousPost->ID ) ) {
        $previousthumbnail = get_post_thumbnail_id( $previousPost->ID );
        $vspreviousurl = wp_get_attachment_image_src( $previousthumbnail, 'thumbnail', true );} ?>
    
    <?php $nextPost = get_next_post( true );
    $vsnexturl = 'http://www.ayedom.com/i/arrow_right_big.png';
    if (has_post_thumbnail( $nextPost->ID ) ) {
        $nextthumbnail = get_post_thumbnail_id( $nextPost->ID );
        $vsnexturl = wp_get_attachment_image_src( $nextthumbnail, 'thumbnail', true );} ?>
    
    <div id="nav-below" class="navigation" style="position:absolute !important;top:300px !important;width:1000px !important;">
    				<div class="nav-previous" style="display:block;width:100px;height:100px;background:url('<?php echo $vspreviousurl[0]; ?>') 0 0 no-repeat;"><?php previous_post_link('%link', '<img src="i/arrow_left_big.png" class="fadeaway" />') ?></div>
    				<div class="nav-next" style="display:block;width:100px;height:100px;background:url('<?php echo $vsnexturl[0]; ?>') 0 0 no-repeat;"><?php next_post_link('%link', '<img src="i/arrow_right_big.png" class="fadeaway" />') ?></div>
    			</div>
    Thread Starter venomshot629

    (@venomshot629)

    * deleted this post, next post better explains problem *

    Thread Starter venomshot629

    (@venomshot629)

    Nevermind, HostGator fixed it, they said they had to reset my .htaccess file back to default, and all pages showed up immediately.

    Thanks again everyone.

    Thread Starter venomshot629

    (@venomshot629)

    Thanks for the responses.

    I did not export the database at the time of the first post I made here, but now I did. I imported it on the new system and created a new database, changed my wpconfig file to match it, and now the site works and let me login, but…

    Now none of my pages are working. I see all of my pages and posts in the WP Admin section, and all of the content and plugins are there, none of my links are working on my site when I click them from the initial page at verysmartdesign.com

    Thread Starter venomshot629

    (@venomshot629)

    Sorry…… Okay, it seemed just one page had a permalink pointing to stukdesigns.com directly, and it lost its old page of “stukdesigns.com/about-us”… i tried to rename it to that and it said it was taken, so i just changed it to stukdesigns.com/about.

    Back to the main issue though, the loading.

    All i have in the sidebar is arbitrary text, containing HTML that calls for the image rollovers. I realized that deactivating Shadowbox gets rid of it, and reactivating it brings it back.

    **** FIXED ****
    I uninstalled and reinstalled shadowbox, deactivated it’s “auto shadowbox on images” in its settings, and now the “loading” message is gone.

    Thank you for your assistance

    Thread Starter venomshot629

    (@venomshot629)

    I have been trying for the past few hours to get this to work; I deleted that cached file, I uninstalled and reinstalled…

    My site where I implement it is http://verysmartdesign.com/central/

    I started using lightbox in the past few weeks since shadowbox wasnt working, and I read that this will replace all lightbox images, but anything I click just brings me to a blank page with just the image rather than the shadowbox popup.

    If anyone else could be of assistance I would greatly appreciate it, I had this working on another site I built and I am confused why it is not working on this one…

    Thread Starter venomshot629

    (@venomshot629)

    The plugins sometimes show up on the individual posts, but not on my template; where should I be putting the php lines for the plugins in my template i posted above??

Viewing 15 replies - 1 through 15 (of 41 total)