Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share the screengrab of where you want to display it along with the URL of that? So that we will let you know accordingly.

    Thread Starter vicentsalvador92

    (@vicentsalvador92)

    Hi @ahmedkaludi
    Yes, I would like the author and the date to appear below the highlighted image, I leave you screenshots.
    For example
    https://ibb.co/NxnBYLK
    I leave you the url
    tatuing.com/famosos/los-tatuajes-de-luis-enrique-el-seleccionador-de-espana-en-la-eurocopa/amp

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please give it a try by enabling the below options and let us know back if you need any assistance?

    Reference screengrab: https://prnt.sc/19p7htr

    Thread Starter vicentsalvador92

    (@vicentsalvador92)

    Hi @ahmedkaludi
    I have enabled the two options as you can see in the image but I do not see it appear.
    https://ibb.co/QpnJ6Bs
    https://ibb.co/0ZKQSMs

    Example URL tatuing.com/famosos/los-tatuajes-de-luis-enrique-el-seleccionador-de-espana-en-la-eurocopa/amp

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sorry for the previous response. You can achieve your requirement by using the following hook: ampforwp_after_featured_image_hook

    With the help of the above hook, you can achieve your requirement.

    Thread Starter vicentsalvador92

    (@vicentsalvador92)

    Hi @ahmedkaludi
    I didn’t understand about the Hook
    Where should I add it?
    Excuse my ignorance

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    By using this ampforwp_after_featured_image_hook hook, we can modify the content.

    Add your function and add the code which you want to get a display in that function and then add the function to the hook, so the code output will get a display after the featured image.

    add_action('ampforwp_after_post_content','amp_custom_content');
    
    function amp_custom_content(){
    
    echo "ddd";
    
    }

    in ampforwp/ function.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add date and author below the highlighted image’ is closed to new replies.