jr99
Forum Replies Created
-
Excellent thanks, I used the query:
update wp_usermeta SET meta_value = 'mainAtTwitter' WHERE meta_key = 'wp-to-twitter-enable-user'
to add it to the database (I used mainAtTwitter because i only needed the “Tweet my posts with an @ reference to my username.” checked)
However, it’s strange that the user’s twitter reference is still not being picked by the
#account# or #@# tags
I will investigate further.
ThanksForum: Fixing WordPress
In reply to: How to Exclude Category from foreach loopCool thanks for the response RoordaTim, I had to play around with it a little and this works for me:
<?php $i = 1; ?> <?php foreach ( $categories as $category ) : ?> <?php if ( in_array( $category->term_id, array ( 16, -33, -1, -28 ) ) ) : ?> <input type="radio" name="category" value="<?php echo $category->term_id; ?>" id="<?php echo $category->slug; ?>"<?php echo ( ! isset( $_POST['category'] ) && 1 == $i ? ' checked' : '' ); echo ( isset( $_POST['category'] ) && $_POST['category'] == $category->term_id ? ' checked' : '' ); ?> /><label for="<?php echo $category->slug; ?>"><?php echo $category->name; ?></label> <?php endif; ?> <?php $i++; ?> <?php endforeach; ?>
Thanks so much! ??
Forum: Fixing WordPress
In reply to: How to Exclude Category from foreach loopWow Thanks RoordaTim, your code work out perfect!! ??
In the near future I might want to exclude multiple cat IDs, I tried putting a comma and the next ID number after the first number but it didn’t work!
How would I write it for multiple IDs?
Thank you so much ??