dohertyjf
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Customer Reviews] Can we have option for auto publish review?I’d also be interested in this.
Forum: Plugins
In reply to: [Plugin: FacetWP] Only indexing first page of resultsThe hole gets deeper.
When I change (add, really) a query on the page and pull something different (eg blog posts) than tags, the filters do not change.
Scenario 1:
Filters pull 10 agencies, 5 consultants.
Page shows 15 results (10 agencies, 5 consultants)Scenario 2:
Filters pull 10 agencies, 5 consultants
Page shows 25 blog posts not associated with that tag.What am I doing wrong?
Forum: Plugins
In reply to: [Plugin: FacetWP] Only indexing first page of resultsThis code has updated a bit.
Forum: Hacks
In reply to: Help for Related Posts within Custom Post Type? Not loopingThanks @bcworkz. Didn’t really do anything unfortuntely. Changing it to grab just one tag actually further restricted.
An example page is https://www.getcredo.com/team-member/john-doherty/. If you click around between the different profiles, you’ll often just see the same three. But, https://www.getcredo.com/team-member/greg-gifford/ returns better since he just has 1 tag. Thoughts?
Forum: Hacks
In reply to: Help for Related Posts within Custom Post Type? Not loopingSo here’s another question – how would I make this code grab the first tag and match based off of that? I’m still only getting three or four different related “posts” pulling and not sure why.
Forum: Hacks
In reply to: Help for Related Posts within Custom Post Type? Not loopingThanks @bcworks. Found that solution last night!
Right now my code is this:
<div class="partner-area"> <?php if (is_singular( 'team-member' ) ): $orig_post = $post; global $post; $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'posts_per_page'=>3, // Number of related posts to display. 'caller_get_posts'=>1, 'post_type' => 'team-member', 'taxonomy' => 'team-member', 'orderby' => 'rand' ); $my_query = new wp_query( $args ); while( $my_query->have_posts() ) { $my_query->the_post(); ?> <div class="relatedthumb"> <a rel="external" href="<? the_permalink()?>"> <div class="related-image"><?php the_post_thumbnail(array(200,200)); ?></div> <br /> <div class="partner-name"><?php the_title(); ?></div> </a> </div> <?php $post = $orig_post; wp_reset_query(); } } endif; ?>
It’s working pretty well! Now just buttoning up some CSS.
Forum: Hacks
In reply to: Help for Related Posts within Custom Post Type? Not loopingMy friend helped me figure out. Here is the working code:
<div class="partner-area"> <?php if (is_singular( 'team-member' ) ): $orig_post = $post; global $post; $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'posts_per_page'=>3, // Number of related posts to display. 'caller_get_posts'=>1, 'post_type' => 'team-member', 'taxonomy' => 'team-member' ); $my_query = new wp_query( $args ); while( $my_query->have_posts() ) { $my_query->the_post(); ?> <div class="relatedthumb"> <a rel="external" href="<? the_permalink()?>"><?php the_post_thumbnail(array(200,200)); ?><br /> <div class="partner-name"><?php the_title(); ?></div> </a> </div> <?php $post = $orig_post; wp_reset_query(); } } endif; ?> </div>
Now to figure out how to randomize what it calls so it’s not just calling the first 3…
Forum: Themes and Templates
In reply to: [CSS] Mobile CSS layout issueThis is fixed mostly for me. I had to declare another class within CSS to make it work correctly.
Originally it was this:
`#et-logo { float: none; margin-bottom: 20; } */
body.home #et-logo { float: left; margin-bottom: 0; }
Now it’s this:
`#top-menu.et-fixed #et-logo { float: left; }
body.home #et-logo { float: left; margin-bottom: 0; }`Forum: Themes and Templates
In reply to: [CSS] Mobile CSS layout issueSorry, links if it’s helful.
hiregun.co (I like this mobile nav layout when you scroll)
hiregun.com/seo-consultants/ (formatting issues, want it like the homepage)