ponch
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Impossible to make billing Postcode not requiredI 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.Forum: Plugins
In reply to: [WooCommerce] Impossible to make billing Postcode not requiredNo, stays on place.
Forum: Plugins
In reply to: [WooCommerce] Impossible to make billing Postcode not requiredI am using this plugin. It’s impossible to remove “required” mark from “billing postcode”. Try yourself. It just stays in place.
Forum: Fixing WordPress
In reply to: When I put breadcrumb code in single, shows wrong post titleHere 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 } ?>
Forum: Themes and Templates
In reply to: Current category is hightlighted only when in archive. Why?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">
Forum: Themes and Templates
In reply to: How Do You Post Text Next to a Picture?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 centerI align pics each time differently, sometimes to the left, sometimes no Celebrity Plastic Surgery Blog
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workI 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
https://www.dietplan.ru/hudet/
Here is my mini-link-catalog main page (category-22.php)
https://www.dietplan.ru/catalog/
Here is a category 30 – a subcategory to 22 and it is blank
https://www.dietplan.ru/catalog/beauty/Here is a category 31 – an independent one and the pattern works fine
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workThat’s why I tried “use-parent-temlate” plugins
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workNo, absolutely identical.
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workOh, 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?
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workExactly, 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
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workremoved 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(); ?>
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workTried 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
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workYou are using a template that only executes when category 22 is being displayed.
Why?
Forum: Fixing WordPress
In reply to: Specific template for subcategories doesnt workAlso 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?