bonzaiya
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Visual Editor not workingAlready try. But it seems not working.
Forum: Fixing WordPress
In reply to: pagination issueI try many times, but can solved problem.
Forum: Fixing WordPress
In reply to: How to enable custom permalinks in shared hosting?Solved a problem after deactivate soe plugin.
Thank
Forum: Fixing WordPress
In reply to: How to enable custom permalinks in shared hosting?I contact a support to let them solved about mod_rewrite/permalinks. But they can’t solved and let me contact a wordpress developer again.
I doubt why a problem out ot support.
Forum: Fixing WordPress
In reply to: How to solve duplicate posts in a LOOP?My code following:
<?php get_header(); ?><?php if ( have_posts() ) : ?>
<div id=”later”>
<div class=”content” style=”padding-left: 5px;”>
<h1>Online Exclusive Deals</h1>
<div id=”productbox”>
<?php /* Start the Loop */ ?><?php while ( have_posts() ) : the_post(); ?>
<div class=”productwarp-feature”><div class=”productimage”><div align=”center”>” title=”<?php the_title(); ?>” rel=”bookmark”><img src=”<?php echo catch_that_image() ?>” style=”width: 80px; max-height: auto !important; height: 80px; max-width: auto !important; margin-left: -30px;”></div></div>
<div class=”productinner”>” title=”<?php the_title(); ?>” rel=”bookmark”><?php the_title(); ?></div>
<p class=”amazonblurb” style=”text-align: center;”>” rel=”nofollow” title=”Go to Store” class=”purelycss_fusion_button color_green” style=”text-decoration: none; color: white;” target=”_blank”>Shop Now</p>
</div>
<?php endwhile; ?></div>
<?php twentytwelve_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<?php if ( current_user_can( ‘edit_posts’ ) ) : // Show a different message to a logged-in user who can add posts. ?><div id=”later”>
<div class=”content” style=”padding-left: 5px;”>
<h2 style=”border: none;”><?php _e( ‘No posts to display’, ‘twentytwelve’ ); ?></h2>
<p><?php printf( __( ‘Ready to publish your first post? Get started here.’, ‘twentytwelve’ ), admin_url( ‘post-new.php’ ) ); ?></p>
<?php else : // Show the default message to everyone else. ?><h1><?php _e( ‘Nothing Found’, ‘twentytwelve’ ); ?></h1>
<p><?php _e( ‘Apologies, but no results were found. Perhaps searching will help find a related post.’, ‘twentytwelve’ ); ?></p>
<?php get_search_form(); ?><?php endif; // end current_user_can() check ?>
<?php endif; // end have_posts() check ?></div>
</div>
<?php require_once(“spin.php”); ?>
<div class=”sidebar”><h3>Most Wished For</h3>
-
<?php while ( have_posts() ) : the_post(); ?>
<?php
global $post;
$args = array( ‘posts_per_page’ => 1, ‘orderby’ => ‘date’, ‘order’ => ‘ASC’ );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :
setup_postdata($post); ?>
<div class=”runner-detail-box”><div class=”product”>
<div class=”img-box” style=”float: left;”>
” title=”<?php the_title(); ?>” rel=”bookmark”><img src=”<?php echo catch_that_image() ?>” style=”max-width: 65px; height: auto !important; max-height: 65px; width: auto !important; padding: 4px;”>
</div>
</div><div class=”best_item_title”>
<h4>” title=”<?php the_title(); ?>” rel=”bookmark”><?php the_title(); ?></h4>
</div></div>
<?php endforeach;
wp_reset_postdata(); ?>
<?php endwhile; ?>Thanks!
Can you help me to write function of it?
I really doubt about function. I try to write and edit some value but it not return a value or get errors not displayed next and previous image by post.
This is my single.php code:
It seems to display information of own page only.
<?php get_header(); ?><?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?><?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php /* Start the Loop */ ?><?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class="productwarp-feature"> <div class="productimage"> <div align="center"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><img src="<?php echo catch_that_image() ?>" style="width: 80px; max-height: auto !important; height: 80px; max-width: auto !important; margin-left: -30px;"></a></div> </div> <div class="productinner"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></div> <p class="blurb" style="text-align: center;"><a href="<?php echo catch_that_url() ?>" rel="nofollow" title="Go to Store" class="purelycss_fusion_button color_green" style="text-decoration: none; color: white;" target="_blank">Shop Now</a></p> </div> <?php endwhile; ?> </div>
Thanks!!
However, I don’t want to using Featured Image. I want to using a first image that found in next and previous post to display in currently post.