Forum Replies Created

Viewing 15 replies - 61 through 75 (of 85 total)
  • Shailesh

    (@shaileshsavaliya)

    If you post your site link here than it would be easy to solve…

    Shailesh

    (@shaileshsavaliya)

    Try to add <br clear=”all” /> before
    <div id=”container”> closed

    Ex:
    ——-
    <div id=”container”>



    <br clear=”all” />//Add this line here
    </div>

    Shailesh

    (@shaileshsavaliya)

    Change in style.css for id div#content line : 48

    float: left;
    margin: 0 0 0 70px;
    width: 385px;
    Shailesh

    (@shaileshsavaliya)

    Working link is here

    [mod: link to non-WordPress site moderated]

    Shailesh

    (@shaileshsavaliya)

    I think this is very easy fix i have do it….

    <?php get_header(); ?>
    
    		 <!-- Begin Content -->
    
    		 <div id="content">
    <?php global $query_string;
    query_posts( $query_string . '&order='.MostVotedAllTime(); ?>
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		       <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    			   <div class="p-heading"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div>
    
    			   <div class="p-content">
    
    			   <?php the_content('Read the rest of this entry ?'); ?>
    
    			   </div>
    
    			   <div class="p-info"><?php the_time('F jS, Y') ?> | <?php the_category(', '); ?> | <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></div>
    
    			   </div>
    
    <?php endwhile; ?>
    
    <div class="navigation">
    
    <div class="alignleft"><?php next_posts_link('? Older Entries') ?></div>
    
    			<div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div>
    
    <div class="clear"></div>
    
    </div>
    
    	<?php else : ?>
    
    <div class="post">
    
    		<div class="p-heading"><h2 class="center">Not Found</h2></div>
    
    		<div class="p-content"><p class="center">Sorry, but you are looking for something that isn't here.</p>
    
    		<?php get_search_form(); ?></div>
    
    </div>
    
    	<?php endif; ?>
    
    		 </div>
    
    		 <!-- End Content -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Shailesh

    (@shaileshsavaliya)

    This is the single page template single post use this template to display.
    You can use below code for your post and please study query_posts() function and use it.

    <?php if (have_posts()) : while (have_posts()) : the_post();
    
    				/* get permalink */
    				$permalink = get_permalink(get_the_ID());
    			?>
    
    			<!-- .post -->
    			<div <?php post_class('clearfix') ?> id="post-<?php the_ID(); ?>">
    
    				<div class="post-image"><?php echo dox_get_post_image($post->ID, 'default-thumb', 'blog', false); ?></div>
    
    				<!-- .post-container -->
    				<div class="post-container grid_8 alpha">
    					<h3 class="blog-title"><?php the_title(); ?></h3>
    
    					<div class="post-meta grid_2 alpha">
    
    						<!-- .post-meta-data -->
    						<div class="post-meta-data">
    							<span class="posted"><?php the_time( get_option('date_format') ) ?></span>
    							<span class="author"><?php the_author_posts_link(); ?></span>
    							<span class="comment"><?php comments_popup_link(__('No comments', 'autotrader'), __('1 Comment', 'autotrader'), __('% Comments', 'autotrader')); ?></span>
    							<span class="tags"><?php $tags = wp_get_post_tags($post->ID); if(! empty($tags)) { $tag_link = get_tag_link($tags[0]->term_id); echo '<a href="'.$tag_link.'">'.$tags[0]->name.'</a>'; } ?></span>
    						</div><!-- .post-meta-data -->
    
    						<!-- .social-buttons -->
    						<div class="social-buttons">
    
    							<span class="twitter"><a href="https://twitter.com/share?url=<?php echo $permalink; ?>&text=<?php echo get_the_title(); ?>&via=<?php echo $dox_options['footer']['twitter']; ?>" class="twitter-share-button" data-count="horizontal"><?php _e('Tweet this article', 'autotrader'); ?></a></span>
    							<span class="google"><div class="g-plusone" data-size="medium" data-href="<?php echo $permalink; ?>"></div></span>
    							<span class="facebook"><div id="fb-root"></div><div class="fb-like" data-href="<?php echo $permalink; ?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div></span>
    							<div class="clear"></div>
    						</div><!-- end - .social-buttons -->					
    
    					</div>
    
    					<!-- .post-data -->
    					<div class="post-data grid_6 omega">
    						<div class="entry-content">
    						<?php the_content(); ?>
    						</div>
    					</div><!-- .post-data -->
    
    				</div><!-- end - .post-container -->				
    
    			</div><!-- end - .post -->
    
    			<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			<?php comments_template(); ?>  
    
    			<?php endwhile; endif; ?>
    Shailesh

    (@shaileshsavaliya)

    If your portfolio data will come from post than you can copy index.php code for get post.

    Now if you have set category for portfolio than you can use query_posts() function.
    https://codex.www.ads-software.com/Template_Tags/query_posts
    Set function parameter as you required… and
    Put this function before while loop.
    Actually you want while loop from index.php

    Shailesh

    (@shaileshsavaliya)

    Your site link is broken.
    Good looking site…

    Shailesh

    (@shaileshsavaliya)

    Backup your file and replace with this code may it work for you..

    <?php get_header(); ?>
    
    		 <!-- Begin Content -->
    
    		 <div id="content">
    <?php global $query_string;
    query_posts( $query_string . '&order=<?php MostVotedAllTime(); ?>
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		       <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    			   <div class="p-heading"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div>
    
    			   <div class="p-content">
    
    			   <?php the_content('Read the rest of this entry ?'); ?>
    
    			   </div>
    
    			   <div class="p-info"><?php the_time('F jS, Y') ?> | <?php the_category(', '); ?> | <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></div>
    
    			   </div>
    
    <?php endwhile; ?>
    
    <div class="navigation">
    
    <div class="alignleft"><?php next_posts_link('? Older Entries') ?></div>
    
    			<div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div>
    
    <div class="clear"></div>
    
    </div>
    
    	<?php else : ?>
    
    <div class="post">
    
    		<div class="p-heading"><h2 class="center">Not Found</h2></div>
    
    		<div class="p-content"><p class="center">Sorry, but you are looking for something that isn't here.</p>
    
    		<?php get_search_form(); ?></div>
    
    </div>
    
    	<?php endif; ?>
    
    		 </div>
    
    		 <!-- End Content -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Shailesh

    (@shaileshsavaliya)

    On your style.css replace .drop class with below code.

    .drop {
        float: left;
        margin: 0 0 0 10px;
    }

    Shailesh

    (@shaileshsavaliya)

    Yes, you can copy code from original template.
    And after than you can change HTML of this template as you required.

    Thread Starter Shailesh

    (@shaileshsavaliya)

    Not. Yes, eventually you’ll need a bigger server, and a better DB, but WordPress.com is running Multisite. It’s okay ??

    Here, what you mean by better DB. Please help me.

    I am using mysql database..
    Is there any number of tables limit per database?

    Shailesh

    (@shaileshsavaliya)

    Create new empty php file for your template.
    You can use below code on top of this empty file.

    /**
     * Template Name: Your Template Name Here
    **/

    After than you can do your custom code as you wish…

    Shailesh

    (@shaileshsavaliya)

    You mean theme….?
    Template means new theme for blog??

    Forum: Plugins
    In reply to: Login in Header
    Shailesh

    (@shaileshsavaliya)

    Also u can use plugins for this….

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