PowerPro
Forum Replies Created
-
Forum: Plugins
In reply to: [VS Event List] Shortcode that shows only 1 eventYes the site also contains a blog.
Forum: Plugins
In reply to: [Juiz Last Tweet Widget] Auto-slide feature has stopped workingHas anyone gotten the autoslide to work? I too am having problems with it.
Forum: Plugins
In reply to: [W3 Total Cache] w3 Total Cache not working with WP 3.5.1I have been getting endless “connection reset” errors on any actions taken in the dashboard.
I tried posting a blog entry…connection reset.
I tried updating a plugin setting…connection reset.
I tried sending a msg to W3TC support from my site…connection reset.
I tried uninstalling the W3TC plugin…connection reset.
I had to manually rip it out via FTP.
I’d like to reinstall it but I can’t have it on the site if it makes it impossible to do any business whatsover.
Forum: Plugins
In reply to: [WP Category Post List Widget] Two ColumnsI’m looking for the exact same thing.
Wonderful. I’ll be looking forward to using it on more projects! ??
Thank you so much for your quick reply!
May I ask if there’s any information as to when the next version will be released?
Okay thank you!
Hey I should have clarified that the site is set up to use Disqus. I figured the spammers were using some sort of automation to bypass the typical process of filling out your username/password…
I’m not sure how to test with this in place.
Okay…will do.
How can I test to see if this is working properly?
And thank you for your help, Todd!
Whoops. My apologies. Let me try again:
https://pastebin.com/PpvDqNeTForum: Plugins
In reply to: Random Featured Image from folder plugin?Anyone?
Alright… after tweaking the first part of the answer to include all categories, it looks like this:
[next time, please use the pastebin for any code longer than 10 lines]
<?php foreach( get_categories() as $cat_id ) { $args=array( 'cat' => $cat_id, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 2, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'List of Posts for category '. $cat_id; while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[] = $post->ID ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php //the_content(); //or the_excerpt{}; endwhile; } } wp_reset_query(); // Restore global post data stomped by the_post(). ?>
But in the second part of the answer:
$my_query = new WP_Query('category_name=featured&posts_per_page=2');
How do I blend them?
Also… am I reading this right in thinking that this part:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
…is what I’m replacing with the final version of the above?
I’m a code tweaker and not a coder thus all the questions. ??
Thank you!
Oh also… I need to ensure that posts only show up one time even if they’re in multiple categories.
Here’s how it looks right now (you’ll note that I’ve set it so that titles of posts from category 40 are red). This is what I need to modify:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="galleryitem" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php if ( function_exists('p75GetThumbnail') )echo p75GetThumbnail($post->ID); ?>" alt="<?php the_title(); ?>" /></a> <!--custom color for post title by category --> <?php if (in_category(40) ) { ?> <h3><a style="color:#990000; font-weight: bold;" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title2('', '...', true, '20') ?></a></h3> <? } else { ?> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title2('', '...', true, '20') ?></a></h3> <? } ?> <!-- end custom color for post title --> <div class="commentsnumber"> <a href="<?php the_permalink() ?>#comments" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php comments_number('0', '1', '%'); ?></a> </div> <p><?php the_content_rss('', TRUE, '', 25); ?></p> <p style="margin:12px 0 0 5px;"> <?php _e('Posted in:'); ?> <?php the_category(', ') ?></p> </div> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: How can I display two posts per category on the home page?Hello…I’m interested in the same thing but not in any category order. Right now, it’s showing all the latest posts from all categories in chronological order with the most recent first…
And I’d like to instead have the latest two from each category show up on the homepage still in chronological order for all categories.
Help please?
Forum: Plugins
In reply to: [Widget Context] How do I show content on a single Category page?I see where I made my error.
In “Target by URL”…for Categories, I needed to enter
category/name-of-category
without any slashes before or after.