EH

Forum Replies Created

Viewing 12 posts - 76 through 87 (of 87 total)
  • Author
    Posts
  • in reply to: $post_title #159511

    EH
    Expired Member
    Post count: 96

    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');
    in reply to: $post_title #159510

    EH
    Expired Member
    Post count: 96

    Nevermind it’s not working after all.

    in reply to: $post_title #159508

    EH
    Expired Member
    Post count: 96

    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');
    in reply to: My Dashboard Widget #159330

    EH
    Expired Member
    Post count: 96

    Widget logic worked perfectly. Thank you.

    in reply to: Looking for geodir_full_page hook #158952

    EH
    Expired Member
    Post count: 96

    I was doing it through the CSS on the body class .geodir-page but your way will work too. Thanks!

    in reply to: Looking for geodir_full_page hook #158890

    EH
    Expired Member
    Post count: 96

    I have another idea. Change I have the location switch show in the advanced search options?

    in reply to: Looking for geodir_full_page hook #158888

    EH
    Expired Member
    Post count: 96

    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?

    in reply to: Looking for geodir_full_page hook #158874

    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.
    in reply to: Looking for geodir_full_page hook #158796

    EH
    Expired Member
    Post count: 96

    That didn’t seem to work either. Here is the site: http://new.electronichouse.com/location/

    in reply to: Looking for geodir_full_page hook #158783

    EH
    Expired Member
    Post count: 96

    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?

    in reply to: Looking for geodir_full_page hook #158732

    EH
    Expired Member
    Post count: 96

    Or better yet can someone point me the the direction of the available hooks to use?


    EH
    Expired Member
    Post count: 96

    There 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.

Viewing 12 posts - 76 through 87 (of 87 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount