Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. to show the related ads on the Ad details only, you would need to add at the beginning of the function function related_ads_tpl_single_bottom( $post_id ) { this code

    
    if( ! is_singular( 'advert' ) ) {
      return;
    }
    

    2. as above to check if you are on the Ad details page you can use the is_singular( 'advert' ) call, of course this will work only once the requester is parsed, that is you can use it in the “init” action or later.

    Hello,

    Please how can I make the related ads show either before or after the default wordpress post comments instead of the (adverts_tpl_single_bottom) section.

    I got this solved using

    add_action( “comment_form_after”, “related_ads_tpl_single_bottom”, 9000 );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Related Ads’ is closed to new replies.