paulpd0

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • paulpd0
    Expired Member
    Post count: 3

    Paolo,

    I’m trying to use a shortcode within the new tab created in the link you gave me in previous post ^^

    The shortcode is not working

    This is what I’m trying to do

    
    
    
    add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
    function geodir_my_new_tab_content($tab_index)
    {
    if($tab_index =='my_new_tab')
    {echo "[php snippet="1"][/php]";}
    }

    I have tried removing the quotes but it produces error, and with them the text of the shortcode is displayed. Plz help!


    paulpd0
    Expired Member
    Post count: 3

    Thank you so much for the help. The code still does not seem to work, I suppose I will need to speak with tech support from other plugin to fix that, but perhaps it is in the way I am trying to apply the code.

    If I wanted this code to be executed on each listing page, would I copy the listing.php file and create a Geodirectory folder in my theme, copy the file there and then place this Php code anywhere in there? Apologies for my lack of knowledge, any help is greatly appreciated!


    paulpd0
    Expired Member
    Post count: 3

    Is there a way I can call on the author of the listing via Php? I installed the listings claim plugin and turned on the “show link to author page on listings” option but it made no change to the listings, still not seeing the author. Also, that isn’t exactly what I’m trying to do – I want to call on the author of the listing to then echo something from another plugin. This other plugin is using the buddypress login, also have geodirectory set to use buddypress login so I’m hoping that there will be a way to call on that author through php on the listing page.

Viewing 3 posts - 1 through 3 (of 3 total)