Hudson Phillips
Forum Replies Created
-
Hi there,
We’re running version 2.0.9.7 and have set the radio and checkboxes skin to none as well, but are still getting reports that filtering isn’t working in IE9. Any ideas why this could still be happening?
Forum: Plugins
In reply to: [Cr3ativ Conference] Speaker LoopThis would affect the sidebar widget?
Forum: Plugins
In reply to: [Cr3ativ Conference] Child Theme IntegrationFigured this out.
Forum: Plugins
In reply to: [Tagregator] Instagram PostsNoticed that as well; the last instagram posts are a few months old on my end
Forum: Plugins
In reply to: plugins new doesn't work on my siteYeah, something is definitely wrong.
Forum: Fixing WordPress
In reply to: Posts_per_page and the date.phpWorks like a charm! Thanks!!!
Forum: Fixing WordPress
In reply to: Conditional Meta Data or Custom FieldsI really need to get better with PHP. Thanks for all your help so far. I tried the code above, modified the meta_key value, but the results weren’t sorted.
I was able to get it to work through a bit of a hack though, here’s how it looks, and here’s what I did:
<?php $args = array( 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'title', 'post_type' => 'store' ); query_posts($args); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $value = get_post_meta($post->ID, 'store_meta_phone', true); ?> <?php if($value != '') : ?> <p class="directory premium"> <a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endif; ?> <?php endwhile; ?> <?php endif; wp_reset_query(); ?> <?php $args2 = array( 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'title', 'post_type' => 'store' ); query_posts($args2); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $value2 = get_post_meta($post->ID, 'store_meta_phone', true); ?> <?php if(empty($value2)) : ?> <p class="directory"> <a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endif; ?> <?php endwhile; ?> <?php else : ?> <h3 class="post-title">No Stores Found</h3> <p>We're sorry, but there are no stores currently available for display. Please return soon.</p> <p> <a href="<?php echo get_option('home'); ?>">Return to the homepage</a> </p> <p> </p> <p> </p> <p> </p> <?php endif; wp_reset_query(); ?>
Basically I’m displaying some stores as preferred if there is a phone number stored, and the rest after if no phone number is present by running two queries. Is this a bad practice?
Forum: Fixing WordPress
In reply to: Conditional Meta Data or Custom FieldsWow, this is way above my head. Let me try to make it simpler,
How can I query for all posts in a post type where a field is not null? I’m using this at the moement:
<?php $args = array( 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'title', 'post_type' => 'store' ); query_posts($args); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <p class="directory"> <a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endwhile; ?> <?php else : ?> <h3 class="post-title">No Stores Found</h3> <p>We're sorry, but there are no stores currently available for display. Please return soon.</p> <p> <a href="<?php echo get_option('home'); ?>">Return to the homepage</a></p> <?php endif; wp_reset_query(); ?>
I think if I can see how to return posts where the field is null (and when it is not null as well), I should be fine.
Thanks
Forum: Fixing WordPress
In reply to: Query whether meta value is not null, and then whether is nullThanks, will review and follow up.
Forum: Fixing WordPress
In reply to: Categories Stopped Updating Months AgoYeah, it’s probably not a good idea to have tags and categories named the same. If you do, you may want to review the difference and purpose of tags vs categories.
Here’s my suggestion, disable any plugins you have that enable caching. Also, go to your Permalinks page, and click save (this will help flush the settings after renaming categories and tags).
Also, double check that the year and date is correct in Settings > General.
Forum: Fixing WordPress
In reply to: Categories Stopped Updating Months AgoIt’s hard to figure out what’s happening without actually seeing how the admin is set up. Here are a few questions, which may seem rather silly:
- Do you have Administrator access? If so, is the data set correctly in Settings > General?
- What was the last date you posted something? Did you assign it a category
- Have you tried disabling plugins to see if it affects how the blog works?
I hope this helps point you in the right direction.
Forum: Fixing WordPress
In reply to: Author nameTry this:
.content-bar .post .post_meta .posted_by { display: none !important;