virgild
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Looping a query in custom widget not workingLol, I don’t think I would have figured that out soon. Thanks t31os you’re the best!
Forum: Fixing WordPress
In reply to: Getting post ID in WP querynvm! I forgot to define the $vote_table variable. Your code works perfectly! I am very grateful for your help!!
Forum: Fixing WordPress
In reply to: Getting post ID in WP queryThanks I tried but nothing displays. I don;t think it’s picking the post id.
Forum: Fixing WordPress
In reply to: Getting post ID in WP queryHmm.. Like this maybe?
function show_votes($thePostID) { global $wpdb; $vote_table = $wpdb->prefix . "vote_posts"; $thePostID = $post->ID; $vote_results = $wpdb->get_row( "SELECT * FROM $vote_table WHERE vote_post_id = need post id here" ); echo $voted_results->votes; //total nr of votes return $thePostID; }
Forum: Fixing WordPress
In reply to: Getting post ID in WP querySorry for not expanding the question. The query is in a plugin function which I call in a query on index.php.
function show_votes() { global $wpdb; $vote_table = $wpdb->prefix . "vote_posts"; $vote_results = $wpdb->get_row( "SELECT * FROM $vote_table WHERE vote_post_id = need post id here" ); echo $voted_results->votes; //total nr of votes }
Forum: Fixing WordPress
In reply to: Getting post ID in WP queryNope I tried that.
Forum: Hacks
In reply to: Adding js file via plugin using wp_head action (doesn't work)Thanks
Forum: Hacks
In reply to: Adding js file via plugin using wp_head action (doesn't work)Thanks Mark!! That works! I noticed that the script is also loading in wp-admin pages. Is there a way to load it just on the blog like index, single post, etc?
Forum: Fixing WordPress
In reply to: if tags existthank you! it works! ??
Forum: Fixing WordPress
In reply to: Website using WordPress trademarkOk I found out that “WordPress” isn’t allowed in a domain name but how about the logo?
Forum: Fixing WordPress
In reply to: WordPress with flash?by effects I mean everything else besides a slide or bounce effect. WIth Flash you can achieve almost any effect and design but in Jquery you’ll have to alter the code, it seems more like hacking to me rather than something more straight forward like Flash. Coding wise I’m not sure if Flash is easier but applying effects is.
Forum: Fixing WordPress
In reply to: WordPress with flash?Thanks for the link ilovecolros!
@royho, are you referring to Jquery? From what I’ve seen the effects you can do with javascript are more limited or more complicated than Flash.
Forum: Fixing WordPress
In reply to: Previous/next post link doesn’t work with query posts?ooh! that works! Thanks, I’ll keep that in mind ??
Forum: Fixing WordPress
In reply to: making checkboxOk I figured it out. Under register_my_settings I didn’t have the new option listed on the same row as the functions HTML
Forum: Fixing WordPress
In reply to: making checkboxThanks! that was so amateur of me..lol
Would you happen to know why an option won’t register? The checkbox appears in my theme’s option but when I check it and save, it remains blank.
I proof read the coding several times.. all other options work but the checkbox. Not sure what can be causing this.