nalacat
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Add a percentage to a value?Hi Popper!
I tried it but it doesnt seem to work.
The returned value if set on its own
<?php echo $General->get_amount_format($Product->get_product_price_only($pid)); ?>Does return a price!
Forum: Fixing WordPress
In reply to: Custom fields …. I'm pissed off!!!can u not view the actual ability to add custom fields or can you not display them in your theme?
Forum: Fixing WordPress
In reply to: Happy to buy somebody a coffee, sub category imagesOK so this code below is close although it displays sub category sub categories!
I want it to automatically display only sub category images of that particular category!
Any ideas to modify this?
<?php $image_path = get_bloginfo('stylesheet_directory'); $cats = get_categories('child_of=22'); $count=1; foreach ((array)$cats as $cat) { $catdesc = attribute_escape(strip_tags($cat->category_description)); $image = $cat->category_nicename .'.jpg'; $cat_img = '<div class="category-image" id="cat-image-'.$count.'"'.'><a href="' . get_category_link($cat) . '" title="'. $catdesc .'"><img class="image-for-category" src="' . $image_path . '/images/' . $image . '" alt="' . $cat->cat_name . '" /></a></div>'."\n\n"; echo $cat_img ; $count++; } ?>Forum: Fixing WordPress
In reply to: Perfect Permalink Possible?Hi vyperlook.
Make sure you add it in the themes functions.php and not wp-includes/functions.php
Hope this helps and works?
Im also runnning the latest version of wordpress!
Forum: Fixing WordPress
In reply to: Perfect Permalink Possible?hi guys.
i found the answer as i was really struggling for over 2 hours or so with this.
This worked for me giving my perfect urls for posts and categories!
Place this code in your themes functions.php file!
[Code moderated as per the Forum Rules. Please use the pastebin]
Hope this really helps you!
Forum: Fixing WordPress
In reply to: Perfect Permalink Possible?its the way i work, as in short urls! opposed to bloated beefy long urls!