• Hello,

    Is there a way to add an option to “report” an ad? I didn’t see any question about this? Maybe just a button to redirect users to a contact form to report an abusive ad?

    I used this topic as reference to add a like option. Used the extension “Post Like Dislike” and added the code below in my theme functions.php:

    add_action( "wpadverts/block/details/tpl/end", function( $post_id ) {
      echo do_shortcode(sprintf('[posts_like_dislike id="%d"]', $post_id ) );
    }, 1000 );

    The pluging is actived, and the option “enable posts like and dislike in frontend” is on but still nothing is showing in frontend… ?

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

    (@gwin)

    Hi,

    please try replacing the line

    echo do_shortcode(sprintf('[posts_like_dislike id="%d"]', $post_id ) );

    with something like

    echo "Hello!";

    If the “Hello” will show on the Ad details page then most likely the [posts_like_dislike] shortcode is run but is generating an empty content for some reason.

    Thread Starter mlieb51

    (@mlieb51)

    Hi,

    Thank you for the reply. I just did the change but nothing is showing either… ? Have you got another suggestion please?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    if nothing is showing then maybe you are using the plugin in old shortcoded mode which does not support the “wpadverts/block/details/tpl/end” filter.

    Can you email me a link to one of you details pages so i can take a look at it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Report ads and like button’ is closed to new replies.