Streaming reviews

This topic contains 14 replies, has 3 voices, and was last updated by  timgtheo 4 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #514785

    timgtheo
    Full Member
    Post count: 211

    Hi I’d like to be able to stream reviews on a company’s listing. Could you tell me how I could do that please?

    Regards
    Tim

    #514786

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514793

    Alex Rollin
    Moderator
    Post count: 27815

    You can add an iFrame into the GD Details template.

    You can also use a textarea custom field, but you should use that as admin only if you will allow scripts.

    For the textarea see: https://wpgeodirectory.com/docs-v2/places/custom/#scripts

    #514796

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514802

    Alex Rollin
    Moderator
    Post count: 27815
    #514804

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514812

    Alex Rollin
    Moderator
    Post count: 27815

    Here are the steps:

    1. Open your CPT custom fields
    2. Add a textarea type field ‘my_iframe’ for the field key. Make sure it is admin only, active, and allowed for price packages. In the advanced options allow media embed.
    3. Add the video code snippet example using the code snippets plugin. Change the field key ‘video’ to ‘my_iframe’
    4. Visit your widgets and add GD Post Meta to the sidebar for the details page. Select your field key -> ‘my_iframe’ field and choose your display options.
    5. Edit a listing and add an iFrame to the field.
    6. View the page to see the iFrame rendered.

    If you need hands on help with that you can contact a GD Expert here:

    https://geodirectoryexperts.com

    #514845

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514849

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #514861

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514862

    Alex Rollin
    Moderator
    Post count: 27815

    You will need to add the snippet shown here, that I referenced in the guide:
    https://wpgeodirectory.com/docs-v2/places/custom/#scripts

    #514868

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514871

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
    #514918

    Kiran
    Moderator
    Post count: 7069

    Hi Tim,

    You forgot to add following lines in snippet.

    
    
    add_filter( 'geodir_custom_field_value_email', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );
    add_filter( 'geodir_custom_field_value_html', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );
    add_filter( 'geodir_custom_field_value_phone', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );
    add_filter( 'geodir_custom_field_value_text', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );
    add_filter( 'geodir_custom_field_value_textarea', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );
    add_filter( 'geodir_custom_field_value_url', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );

    I have added above lines in PHP snippet and now it saves iframe & script fine.

    Kiran

    #514969

    timgtheo
    Full Member
    Post count: 211
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket