widecast
Forum Replies Created
-
Forum: Plugins
In reply to: [GD Star Rating] How to display only individual user rating?I’ve figured out how to display the overall rating as text, like this:
if (function_exists('wp_gdsr_render_article')) { $gp_gdsr = wp_gdsr_rating_article(); $text_rating = $gp_gdsr->rating; //get the post's rating if ($text_rating != 0) { echo '<span>' . $text_rating . '/5.0' . '</span> - '; } }If you can find a way to show blank stars to the user until they have personally voted, this would be resolved.
Forum: Plugins
In reply to: [GD Star Rating] How to display only individual user rating?I’m also looking for this functionality. Has anyone figured this out? I’d be willing to pay for someone to customize the plugin if necessary…
Forum: Plugins
In reply to: [GD Star Rating] Show user's rating instead of the overall ratingI’m also looking for this functionality. Has anyone figured this out? I’d be willing to pay for someone to customize the plugin if necessary…
Forum: Fixing WordPress
In reply to: excluding posts that contain specific stringvtxyzzy, I really appreciate that you shared this knowledge! It’s exactly what I was looking to do but didn’t know how to use filters to modify a query. Going to give this a shot. Thanks!
Forum: Plugins
In reply to: [Random Post Link] How to fix plugin so it works in Firefox?I just noticed the same issue on my installation as well. Works perfectly in Chrome but in Firefox I keep getting redirected to the same post even after clearing the sites and cache and deleting cookies from my browser.
Forum: Plugins
In reply to: [Ad Injection] conflict between ad injection and supercacheTo the plugin author: according to the supercache author, mfunc is considered obsolete and isn’t supported anymore.
Do you have plans to update Ad Injection to find another way around cached websites?
Forum: Plugins
In reply to: [Ad Injection] conflict between ad injection and supercacheOK, interesting. So it sounds like an issue other people may run into as they update these plugins.
For now I’ve had to keep supercache disabled.
Forum: Fixing WordPress
In reply to: Renaming post titles but only for widgetsAny ideas?
Ok, I think I found the answer here:
What Template is used to Display a Particular Page?
WordPress will look for several template files in your active Theme. The first one it finds will be used to display any given Page. WordPress will look for files in the following order:
1. The Page’s selected “Page Template”
2. page.php
3. index.php
http://codex.wordpress.org/Pages#What_Template_is_used_to_Display_a_Particular_Page.3FI added the conditional statement to the index.php file and that worked. 🙂
Forum: Fixing WordPress
In reply to: Trying to output a post’s terms (taxonomy) as text, not URLsThanks for the replies! I found a pretty simple way that I hadn’t thought of… Basically using get_the_term_list and then using strip_tags to get just the terms as text.
Works like a charm. Hopefully this helps someone in the future.
Example:
$terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'taxonomyyouwanttoquery', '', ', ', '' ) ); echo $terms_as_text;Just replace the taxonomyyouwanttoquery with the taxonomy you’d like to check against for terms associated to the post.
Forum: Plugins
In reply to: Remove Top Level Categories Does Not WorkUsing WordPress 2.8.4, I just pulled off what you’re trying to do by going to the permalinks settings page and then for category base, just enter “.” (a single period, no quotes) and then /category/ will disappear.
Forum: Fixing WordPress
In reply to: Trying to output a post’s terms (taxonomy) as text, not URLsThanks for the reply. Actually I’m talking about a new feature in 2.8 called taxonomy. It works a bit different than tags and categories.
http://codex.wordpress.org/Function_Reference/get_the_term_list
This function works like a charm to list my taxonomy terms as links but I’d like to use those same terms as normal text within the WordPress post templates as well.
If you’d like to learn about it, check the functions here: http://codex.wordpress.org/Function_Reference (find ‘taxonomy’).
The article that got me into taxonomy is this one, check it out as well if you’re interested: http://justintadlock.com/archives/2009/06/04/using-custom-taxonomies-to-create-a-movie-database
Thanks for trying to help. If you can help more, please do, if not, enjoy the reading!
Forum: Fixing WordPress
In reply to: Trying to output a post’s terms (taxonomy) as text, not URLsCan anyone tell me if I’m on the right track? How can I echo just the ‘Mexican’ term in the array? I’ve been trying to accomplish this for hours with no luck. Any help is appreciated!
Forum: Fixing WordPress
In reply to: Trying to output a post’s terms (taxonomy) as text, not URLsAccording to the first link, where I used the word ‘terms’ is in reference to my taxonomy title.
I now tried:
$terms = get_the_terms($post->ID, 'cuisine_type'); print_r($terms);Now I get the output:
Array ( [7] => stdClass Object ( [term_id] => 7 [name] => Mexican [slug] => mexican [term_group] => 0 [term_taxonomy_id] => 7 [taxonomy] => cuisine_type [description] => This is the Mexican food section [parent] => 0 [count] => 2 [object_id] => 6 ) )
The ‘type’ in this case is ‘Mexican’. That’s what I’d like to print.
Forum: Fixing WordPress
In reply to: Trying to output a post’s terms (taxonomy) as text, not URLsHi there, thx for the quick answer.
That’s definitely the right direction. I tried using the following:
<?php echo get_the_terms($post->ID, ‘type’); ?>
but all that is echoed is the word ‘array’. How do I print the results of this array? I’m new to PHP and even newer to arrays. 🙂
David