robertallen
Forum Replies Created
-
vaughn771, you probably should delete that post and just message smashballoon directly. That is public.
Please disregard. It looks as if according to this page:
https://givewp.com/donation-forms-one-page/
“give_forms” is the custom post type.
Forum: Fixing WordPress
In reply to: Double URL IssuesThat’s weird. They do have that.
Forum: Plugins
In reply to: [Co-Authors Plus] List All Posts For Each Co-AuthorHi all,
Sorry to hijack this thread, but I’m having a similar issue to this. I tried the code you pasted but it doesn’t seem to display anything now. I am trying to put this in the author.php file (having to setup multiple queries in this template).
$current_author = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); <?php // Build the query arguments $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'cat' => 82, 'post_status' => 'publish', 'author_name' => $current_author->user_login, ); $author_query = new WP_Query( $args ); if ( $author_query->have_posts() ) : while ( $author_query->have_posts() ) : $author_query->the_post(); // Do your presentation ?> <div class="row more-bottom-margin"> <div class="column small-12 medium-4"> <?php the_post_thumbnail( 'small' ); ?> </div> <div class="column small-12 medium-8 more-bottom-margin"> <h3 class="no-top-margin"><?php the_title(); ?></h3> <p><?php the_excerpt(); ?></p> <p><a href="<?php the_permalink(); ?>">Read More</a></p> </div> </div> <?php endwhile; endif; wp_reset_postdata(); ?>
Right now it’s not displaying anything. Any help would be greatly appreciated.
Thank you so much for such a fast response. The only problem I see is on Facebook now it eliminated all spaces in the highlighted quote.
Think of the last time you were at
turns into
thinkofthelasttimeyouwereat
Also, is there any way to display the article title upon all the social share postings as well?
Sure thing…
<?php /** * The template for displaying search results pages. * * @package _s */ get_header(); ?> <div id="hash-tag-header"> <h1>Search Results for:</h1> </div> <div class="centered cf"> <div id="tag-post-list"> <ul> <?php echo do_shortcode('[ajax_load_more repeater="template_3" post_type="post" preloaded="true" preloaded_amount="10" posts_per_page="10" max_pages="0" search="'. $term .'" button_label="Show More Stories"]'); ?> </ul> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Content Blocks (Custom Post Widget)] Enable Custom Field Area in WP EditorHi Johan,
That worked perfectly, thank you!
This plugin is a must for every WordPress installation. I actually use the Content Blocks area not just for Widgets, but for anything on a template. I can just use PHP code to call the content block wherever I want it. Everything from a logo, to footer contact information, etc… Amazing job on this over the years!
Forum: Plugins
In reply to: [AVH Extended Categories Widgets] Nothing work after 3.9.3 updateI had the same problem with Category Group Widget, but then I used AVH Extended Categories (An extended version of the default Categories widget.) and everything works now.
Hope this helps.
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsThank you so much for all your help with this vtxyzzy. We decided to throw a little workaround, while it’s not ideal, it got the job done.
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsFirst off, thank you so much for your help on this. I really appreciate it.
It’s actually a template used int he Blog (Home). We created this from a blank Thesis skin.
We took out the posts_per_page and that seemed to fix the Older Posts issue, but when I added offset=1 back in it still only shows the same posts on every pagination.
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsNo, just this one. But the top has one loop, but it doesn’t have an offset.
this is the top blog post
<?php query_posts('cat=153,155,152,154,161&posts_per_page=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <p class="post_cats"><?php the_category(' '); ?></p> <h2 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post_id, 'large'); ?></a> <div class="blog-tl-author-date"> <span class="post_date"><?php the_date(); ?></span> <span class="post_author"><?php the_author(); ?></span> </div> <div class="blog-tl-excerpt"> <?php the_excerpt(); ?> <a class="excerpt_read_more" href="<?php the_permalink(); ?>">Continue Reading</a> </div> <?php endwhile; endif; ?> <?php wp_reset_query(); ?>
This is the bottom blog posts…
<?php if (!$paged = get_query_var('paged')) { if (!$paged = get_query_var('page')) { $paged = 1; } } query_posts('cat=153,155,152,154,161&posts_per_page=5&paged=' . $paged); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="blog-query-entry"> <div class="lc"> <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post_id, 'large'); ?></a> </div> <div class="rc"> <p class="post_cats"><?php the_category(' '); ?></p> <h2 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <span class="post_date"><?php the_date(); ?></span> <span class="post_author"><?php the_author(); ?></span> </div> </div> <?php endwhile; ?> <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div> <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php endif; ?> <?php wp_reset_query(); ?>
I took out the offset and noticed aside from the last older post going to page 8 and.
My hope is to be able to keep the offset in there and for it not to go to a 404 on the last page.
So I guess it won’t display older posts when it’s done querying?
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsAlso once it gets to the last page it still displays Older Posts, then goes to a 404 page.
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsThat helped a bit for sure, thank you…
But I noticed the problem. I got rid of &offset=1 in it and now it works.
So the pagination doesn’t work when offset is around. Hmm.
Forum: Fixing WordPress
In reply to: Custom Query with Pagination ProblemsHmm, I’m still getting the same issue.
<?php if (!$paged = get_query_var('paged')) { if (!$paged = get_query_var('page')) { $paged = 1; } } query_posts('cat=153,155,152,154,161&posts_per_page=5&offset=1&paged=' . $paged); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="blog-query-entry"> <div class="lc"> <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post_id, 'large'); ?></a> </div> <div class="rc"> <p class="post_cats"><?php the_category(' '); ?></p> <h2 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <span class="post_date"><?php the_date(); ?></span> <span class="post_author"><?php the_author(); ?></span> </div> </div> <?php endwhile; endif; ?> <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div> <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php wp_reset_query(); ?>
You can see the problem at amplifinity.wpengine.com/blog/
I wonder if it has something to do with the top section…
I have a query for the first area of the blog…
<?php query_posts('cat=153,155,152,154,161&posts_per_page=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <p class="post_cats"><?php the_category(' '); ?></p> <h2 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post_id, 'large'); ?></a> <div class="blog-tl-author-date"> <span class="post_date"><?php the_date(); ?></span> <span class="post_author"><?php the_author(); ?></span> </div> <div class="blog-tl-excerpt"> <?php the_excerpt(); ?> <a class="excerpt_read_more" href="<?php the_permalink(); ?>">Continue Reading</a> </div> <?php endwhile; endif; ?> <?php wp_reset_query(); ?>
Basically the client wanted a large feature blog of specific categories, and then the rest underneath of specific categories. I must be missing something.
Forum: Plugins
In reply to: [Owl Carousel] Responsive problems with 3 imagesYes, unfortunately we had to deliver to the client. Sorry about that.
Thank you for responding.
Apologies, I should’ve figured out a way to delete this thread.