• Resolved benclement

    (@benclement)


    hi, i have the problem that Featured Image Caption is not displaying on the start page. here i have use the postgrid from my theme astra-spectra for gutenberg.
    Otherwise the plugin works as you can see on this page https://b-c.design/layout/aktuelles/

    Many thanks for your help!
    regards
    ben

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fesomia

    (@fesomia)

    As it is a third party plugin it’s probably calling the images directly and thus not passing through the default wordpress function to show the image. We’ll look if something can be done

    Thread Starter benclement

    (@benclement)

    ok thanks for the info and I look forward to hearing back!

    Thread Starter benclement

    (@benclement)

    hello, I wanted to ask if you have an idea for the solution to the problem of Astra Spectra block post?
    regards

    Plugin Author fesomia

    (@fesomia)

    Yes, astra seems to allow to add content to the grid with the uagb_single_post_after_featured_image_grid action (read more about it at https://wpspectra.com/docs/filters-actions-for-post/). But depending of your php/wordpress programming knowledge, you may need a developer to do it

    You can have a very basic working version pasting this code in the functions.php file of your theme:

    function add_image_caption_after_image_grid($post_id, $attributes ) {
        echo '<div>'.get_FSM_featured_image_caption().'</div>'; 
    } 
    add_action( 'uagb_single_post_after_featured_image_grid', 'add_image_caption_after_image_grid', 10, 2 );
    

    Keep in mind that this probably needs additional code to i.e. restrict it to a particular page, add styles… and other custom changes for your site that are beyond the purpose of this general support forum.

    Thread Starter benclement

    (@benclement)

    thanks a lot it works!
    best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Custom Featured Image Caption in post grid’ is closed to new replies.