Pete
Forum Replies Created
-
Forum: Plugins
In reply to: [ICS Calendar] css for individual data feeds within a multiple feed listThanks heaps. How would this apply to the list format?
Forum: Plugins
In reply to: [ICS Calendar] Multiday Events in ListviewI’d like to vote for this feature too. Most of my events span over 5 days and this takes up a lot of screen space. It would be great if this could be consolidated into just one entry. Thanks for a great plugin.
Will do. This night be worth a sticky?
Forum: Plugins
In reply to: [Force Login] Exclude pages and posts with a specific tagForum: Developing with WordPress
In reply to: How to display category description in this functionThanks, it works well.
Forum: Plugins
In reply to: [DW Question & Answer] Looks great BUT….It doesn’t appear to be maintained. I’d look at BBPress.
Would it be hard to have the groups displayed on each user’s profile page?
Forum: Plugins
In reply to: [Import Users from CSV] CSV formatI’m not complaining. I’m just making a suggestion. All plugins here are free.
Forum: Plugins
In reply to: [Posts in Sidebar] Display hidden custom fieldsThanks again, i’ll try it out and let you know.
Forum: Plugins
In reply to: [Posts in Sidebar] Display hidden custom fieldsThanks for the update. Much appreciated.
Forum: Plugins
In reply to: [CBX User Online & Last Login] Display names inline rather than as a listCan you show me how to do that please
Forum: Developing with WordPress
In reply to: Delete all post comments NOT attachment or page commentsYou’re absolutely right. I didn’t check first sorry. Thanks for clarifying.
Forum: Developing with WordPress
In reply to: pre get posts query not obeying meta keyThanks, here’s my updated code that works…
add_action( 'pre_get_posts', 'tax_public' ); function tax_public( $query ) { if ( $query->is_tax() && $query->is_main_query() ) { $query->set('posts_per_page', 30); $query->set( 'orderby', 'date' ); $query->set('post__not_in', array(2029999999999999,999999999999999911)); $query->set( 'meta_key', 'archives' ); $query->set( 'meta_value', 'yes' ); } }
- This reply was modified 5 years, 3 months ago by Pete.
Forum: Plugins
In reply to: [Like Button Rating ? LikeBtn] How do I display the widget thumbnails inline?I edited the template/liked-by-user-widget.php file…
From this…<?php if (count($post_loop) > 0): ?> <ul class="likebtn-mlw"> <?php foreach ($post_loop as $post): ?> <li id="post-<?php echo $post['id'] ?>" class="likebtn-mlw-item" > <a href="<?php echo $post['link'] ?>" title="<?php echo $post['title'] ?>"> <?php if ($show_thumbnail): ?> <?php if ('image/' == substr( $post['post_mime_type'], 0, 6 ) ): ?> <?php echo wp_get_attachment_image( $post['id'], $thumbnail_size, array('class' => 'likebtn-item-thumbnail') ); ?> <?php else: ?> <?php echo get_the_post_thumbnail($post['id'], $thumbnail_size, array('class' => 'likebtn-item-thumbnail')); ?> <?php endif ?> <?php endif ?> <div class="likebtn-mlw-title"> <?php echo $post['title'] ?><?php if ($show_likes || $show_dislikes): ?> <span class="likebtn-item-likes"><nobr>( <?php endif ?> <?php echo $show_likes ? $post['likes'] : ''; ?> <?php if ($show_likes && $show_dislikes): ?> / <?php endif ?> <?php echo $show_dislikes ? $post['dislikes'] : ''; ?> <?php if ($show_likes || $show_dislikes): ?> )</nobr></span> <?php endif ?> </div> </a> <?php if ($show_date && $post['date']): ?> <small class="likebtn-mlw-date"><i><?php echo date_i18n(get_option('date_format'), $post['date']) ?></i></small> <?php endif ?> <?php if ($show_author && $post['author_name']): ?> <?php if ($show_date && $post['date']): ?> <small>/</small> <?php endif ?> <small class="likebtn-mlw-author"><i><?php echo $post['author_name'] ?></i></small> <?php endif ?> <?php if ($show_excerpt): ?> <div class="likebtn-mlw-excerpt"><?php echo $post['excerpt'] ?></div> <?php endif ?> <?php if ($post['button_html']): ?> <div class="likebtn-mlw-button"><?php echo $post['button_html']; ?></div> <?php endif ?> <?php if ($show_thumbnail || $show_excerpt): ?> <br/> <?php endif ?> </li> <?php endforeach; ?> </ul> <?php else: // No items ?> <div class="likebtn-mlw-no-items"> <p><?php _e('No items liked yet.', LIKEBTN_I18N_DOMAIN); ?></p> </div> <?php endif; ?>
To this…
<?php if (count($post_loop) > 0): ?> <?php foreach ($post_loop as $post): ?> <span id="post-<?php echo $post['id'] ?>" class="likebtn-mlw-item" > <a href="<?php echo $post['link'] ?>" title="<?php echo $post['title'] ?>"> <?php if ($show_thumbnail): ?> <?php if ('image/' == substr( $post['post_mime_type'], 0, 6 ) ): ?> <?php echo wp_get_attachment_image( $post['id'], $thumbnail_size, array('class' => 'likebtn-item-thumbnail') ); ?> <?php else: ?> <?php echo get_the_post_thumbnail($post['id'], $thumbnail_size, array('class' => 'likebtn-item-thumbnail')); ?> <?php endif ?> <?php endif ?> <div class="likebtn-mlw-title"> <?php echo $post['title'] ?><?php if ($show_likes || $show_dislikes): ?> <span class="likebtn-item-likes"><nobr>( <?php endif ?> <?php echo $show_likes ? $post['likes'] : ''; ?> <?php if ($show_likes && $show_dislikes): ?> / <?php endif ?> <?php echo $show_dislikes ? $post['dislikes'] : ''; ?> <?php if ($show_likes || $show_dislikes): ?> )</nobr></span> <?php endif ?> </div> </a> <?php if ($show_date && $post['date']): ?> <small class="likebtn-mlw-date"><i><?php echo date_i18n(get_option('date_format'), $post['date']) ?></i></small> <?php endif ?> <?php if ($show_author && $post['author_name']): ?> <?php if ($show_date && $post['date']): ?> <small>/</small> <?php endif ?> <small class="likebtn-mlw-author"><i><?php echo $post['author_name'] ?></i></small> <?php endif ?> <?php if ($show_excerpt): ?> <div class="likebtn-mlw-excerpt"><?php echo $post['excerpt'] ?></div> <?php endif ?> <?php if ($post['button_html']): ?> <div class="likebtn-mlw-button"><?php echo $post['button_html']; ?></div> <?php endif ?> <?php if ($show_thumbnail || $show_excerpt): ?> <?php endif ?> </span> <?php endforeach; ?> </ul> <?php else: // No items ?> <div class="likebtn-mlw-no-items"> <p><?php _e('No items liked yet.', LIKEBTN_I18N_DOMAIN); ?></p> </div> <?php endif; ?>
Forum: Developing with WordPress
In reply to: Add “author” to the body class of a postThanks very much.