EH
Forum Replies Created
-
AuthorPosts
-
Okay NOW I think I have it working.
//Add tagged content function posts_by_dir_tag(){ if (geodir_is_geodir_page()) { $post_tag = get_the_title($post->post_title ); $second_query = new WP_Query( array( 'tag_slug__in' => array( $post_tag) ) ); } // The Loop while( $second_query->have_posts() ) : $second_query->the_post();?> <a href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile; wp_reset_postdata(); } add_action ('geodir_article_close','posts_by_dir_tag');
Nevermind it’s not working after all.
I think I actually got it working with:
function posts_by_dir_tag(){ if (geodir_is_geodir_page()) { $post_title = the_title(); $second_query = new WP_Query( array( 'tag_slug__in' => array( $post_title ) ) ); // The Loop while( $second_query->have_posts() ) : $second_query->the_post();?> <a href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile; wp_reset_postdata(); }} add_action ('geodir_article_close','posts_by_dir_tag');
Widget logic worked perfectly. Thank you.
I was doing it through the CSS on the body class .geodir-page but your way will work too. Thanks!
I have another idea. Change I have the location switch show in the advanced search options?
The only problem with that is then it will show up on sections outside the directory. The directory is only one piece of this site. Can I limit it somehow?
This reply has been marked as private.That didn’t seem to work either. Here is the site: http://new.electronichouse.com/location/
This didn’t work its still putting the content below this class geodir_full_page. I created a third navigation and I’m putting the change location inside in. I would like it to appear above the map on the location page.
Do you have a listed of available hooks for me to try out?
Or better yet can someone point me the the direction of the available hooks to use?
April 5, 2016 at 2:24 pm in reply to: How to have File upload images only show up on paid version #157901There isn’t a way to edit the template directly to check to see if that field is empty and not display it? I’m not afraid of editing code, I’m just not sure what function this is called from.
-
AuthorPosts