Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter ponch

    (@ponch)

    I tried this code in functions.php + in plugin Customize Checkout Options (paid $40 for it) the “required” field for Billing Zipcode is unchecked + I erased update_totals_on_change in Postcode options, still it has red mark and is required.

    Anyone can explain why?

    I’m using to methods of delivery – all the country and local.
    I disabled shipping fields and use billing as the address. Locals dont need and dont remember their postcode, so I need to make it non-required. But cant.

    Thread Starter ponch

    (@ponch)

    No, stays on place.

    Thread Starter ponch

    (@ponch)

    I am using this plugin. It’s impossible to remove “required” mark from “billing postcode”. Try yourself. It just stays in place.

    Thread Starter ponch

    (@ponch)

    Here is what I have in left sidebar before single.php

    <div id="sidebar2" style="padding-top:12px;">
    <?php if(is_single()){ ?>
    <?php
    $category = get_the_category();
    $cat_id = $category[0]->term_id;
    if($cat_id){
    ?>
    <?php //echo "cat=".$cat_id."&showposts=3&post__not_in=".get_the_ID(); ?>
    <?php //$recent = new WP_Query("cat=".$cat_id."&showposts=3&p=-".get_the_ID()); ?>
    <?php $recent = new WP_Query(array('cat' => $cat_id, 'showposts' => 3, 'post__not_in' => array(get_the_ID()))); ?>
    <?php if ($recent->have_posts()): ?>
    <div class="blogs123">
    
    <span>Последние посты в этой рубрике:</span> <br>
    <div class="also3" style="padding-top:6px;">
    <?php while($recent->have_posts()) : $recent->the_post();?>
    <li class="clear" style="padding-top:5px;">
    <?php if(function_exists('get_avatar') && 0){ ?>
    <div class="leftrandom"><?=get_avatar($post->post_author, '60','60');?></div>
    <?php } ?>
    <span style="color:#999999;font-size:14px;"><?php the_author(); ?></span><br><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    </li>
    <?php endwhile; ?>
    </div>
    </div>
    <?php endif; ?>
    <?php } ?>
    <?php } ?>
    Thread Starter ponch

    (@ponch)

    When in single the link for the current category doesnt have “current-cat” attribute, that’s why it’s not highlighted

    <li class="cat-item cat-item-7">

    You can add a rule to your style.css smth like

    .entry img {float:left;}

    but you’d better leanr using your visual editor, it’s under the picture

    alignment
    no left right center

    I align pics each time differently, sometimes to the left, sometimes no Celebrity Plastic Surgery Blog

    Thread Starter ponch

    (@ponch)

    I can show my site, but it’s not in English, I am afraid you’ll think I cant solve this problem, coz I am not a native english speaker, but I managed to build the site.

    Here is my usual category.php

    http://www.dietplan.ru/hudet/

    Here is my mini-link-catalog main page (category-22.php)

    http://www.dietplan.ru/catalog/

    Here is a category 30 – a subcategory to 22 and it is blank
    http://www.dietplan.ru/catalog/beauty/

    Here is a category 31 – an independent one and the pattern works fine

    http://www.dietplan.ru/pravpitanie/

    Thread Starter ponch

    (@ponch)

    That’s why I tried “use-parent-temlate” plugins

    Thread Starter ponch

    (@ponch)

    No, absolutely identical.

    Thread Starter ponch

    (@ponch)

    Oh, thanx, but the code is too complicated, where exactly to put it, and where exactly to put in this code the desired pattern for these categories?

    Thread Starter ponch

    (@ponch)

    Exactly, my problem is different, I am not trying to display some other category posts at category 22. I am just trying to apply a certain template to some categories (30, 31, 32, 33). But it works only when they are independent categories. When I ajust them as subcategories they display no posts. When I delete their templates, they work normally in both ways.

    I thought my explanation in the first post was quite simple and clear… Dont know

    Thread Starter ponch

    (@ponch)

    removed query_posts from category-30.php , also removed query_posts from its parent category 22 nothing changes. There is header, sidebar, everything, but no posts.

    Here is the code for category 22, I also tried “use_parent_category_template” plugin – still no posts.

    category-22.php (desired parent to cat 33)

    <?php get_header(); ?>
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    	<div id="content">
    
    <div style="width:85%;margin-top:20px;">
    <?php include (TEMPLATEPATH . '/3.php'); ?>	 
    
    <p>
    <p>
    <p> 
    
    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
       <div class="clearfloat">
    
    <div style="padding-top:10px;padding-left:10px;display:block;">
    		<div class="left"><p><?php $values = get_post_custom_values("Image"); echo $values[0]; ?></div> <div style="padding-left:30px;"><?php the_content();?></div>
    				 </div> </div>
    
    				<!--<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>-->
    
    		<?php endwhile; ?>
    
    		<div style="padding-top:20px;padding-left:5px;"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div>
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    	<?php endif; ?>
    
    <p>
    <p>
    
    </div>
    	</div>
    
    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
    
    <?php get_footer(); ?>
    Thread Starter ponch

    (@ponch)

    Tried like this in category-30.php

    <?php
    query_posts($query_string.'&posts_per_page=10&cat=30');?>

    Again, when Cat 30 is an independant category everything works fine, when a subcategory – blank

    Thread Starter ponch

    (@ponch)

    You are using a template that only executes when category 22 is being displayed.

    Why?

    Thread Starter ponch

    (@ponch)

    Also when I make category-30.php a subcategory to any normal cat in my blog, it keeps dispaying nothign. Even if I erase

    <table><tr><td class="catalog"><?php wp_list_categories('include=30,31&title_li='); ?></td><td style="padding-left:30px;" class="catalog"><?php wp_list_categories('include=32,33&title_li='); ?></td></tr></table>
    
    <p>
    <p>
    <p>
    <?php
    query_posts($query_string.'&posts_per_page=10');?>

    I dont know what’s my mistake?

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