zedesino
Forum Replies Created
-
Forum: Plugins
In reply to: Custom Field Checkbox with WordPress [Flutter]<?php if ( get_post_meta($post->ID, 'shipping', true) ) { ?> <p class="freeship">Includes Free Shipping!</p> <?php } else { ?> <?php } ?>
so to get this example working just do this
<?php $shipping = get_post_meta($post->ID, "shipping", $single = true); if($shipping !== 'false') { echo '<p class="freeship">Includes Free Shipping!</p>'; } ?>
so there is a way for custom field that is a text field
<?php $custom_field = get_post_meta($post->ID, "custom_field", $single = true); if($custom_field !== '') { echo '<li> <span>' . $custom_field; echo '</span>Head:</li> '; } ?>
So the first example will echo your html content only if chebox is selected.
Second example will echo html content only if field have some text in it. I’m using it here and works perfect,cheers
Forum: Plugins
In reply to: Looking for a plugin for photo clicksthis one will work great link
Forum: Fixing WordPress
In reply to: query posts from 2 categoriesi founded faster than i was thinking
query_posts(array(‘category__and’ => array(3,20)));Forum: Fixing WordPress
In reply to: query posts from 2 categorieshello krembo99,
i tryed your solution but doesnt work. I want to show this posts when i’m viewing page in wp, so i’m not in_category and doesnt work.
but thanks anyway for time you spentForum: Fixing WordPress
In reply to: WP Category from Permalink?Hello twofivethreetwo,
does you find this working somehow
thanks
Forum: Plugins
In reply to: 2 advanced problemsThank you for the answer.
It works nice. i will use same metod for second question.Ciao!
Forum: Plugins
In reply to: simple php questionwow!
thank you this works great.
I know was possible but my knowledge of php is bad.Interesting, now works perfect, if doesn match two categories i dont get any result. it’s excellent.
Forum: Plugins
In reply to: simple php questionedit:
so i’m using plugin category magic. plugin works like that you add three digits (‘x’,’y’,’z’)
x is first category
y is second and
z is number of post i want to show.So i have one constant category ‘x’ and 50 different so for each of those 50 categories i have one post that are also in ‘x’ category. And i want when i’m on website.com/category/category-y to be able to read automaticly id of category ‘y’ and to add to plugin query and plugin will show me link to post that is related to category ‘x’ and also to current category ‘y’
Forum: Everything else WordPress
In reply to: WordPress as a CMS ExamplesHello, interesting post
i just finished one wp as cms, and soon will have 3 more.this one will have domain tomorrow owen gallery
and if you are interested i will give you more descriptions and links.
you can write me on zedesino[at]beocity.net
Forum: Plugins
In reply to: Showing empty categories without linkyou are right Handysolo for update, but
i spent days and days of tweaking and did not find how to fix this thru plugin. I will try more.thanks
Forum: Plugins
In reply to: Showing empty categories without linki will ask one more time, how to turn of link for empty categories in wordpress. I mean in core of wordpress what to change to get empty categories without link.
Please, thanks
Forum: Fixing WordPress
In reply to: Menu in sidebar: grandchildren show wrong menuHello, i have the same problem, did you maybe find the solution?
i tweak this code a litle and get grandchildren n chilrden page but i can kee them visible when i’m on grandchildren page.here is the code:
<?php
if($post->children)$grandchildren = wp_list_pages(“title_li=&child_of=”.$post->children.”&echo=0″); else
$grandchildren = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0″);
if ($grandchildren){ ?>
-
<?php echo $grandchildren; ?>
<?php } ?>
Forum: Plugins
In reply to: Showing empty categories without linkHello HandySolo,
i know about that but there is a problem with plugin. DDMultiColCats plugin doesnt support shwing count next to categories, so i have two options:
– to turn-off links for empty categories in core of wordpress or
– to make custom template to show categories as this plugin showsi tryed to tweak plugin but doesnt work.
thanks anyway
Forum: Plugins
In reply to: Showing empty categories without linki can not believe there is no answer for this.
Guys please how to show empty categories without links.Thanks
Forum: Plugins
In reply to: Showing empty categories without linkanybody… i need this please.