Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    The issue is simple, and is not caused by our plugin. Unfortunately the Hatch Theme inserts only the featured images of posts in the archive pages (the archive pages are used to display the categories), but does not takes in consideration the posts types that don’t use featured images.

    My recommendation is to vary the template file: “/wp-content/themes/hatch/archive.php”, to use another information of posts/pages and not only the featured images.

    Best regards.

    Thread Starter booke022

    (@booke022)

    you must have read my mind I am doing that now

    Thank you for all your help

    Kind regards

    Thread Starter booke022

    (@booke022)

    will I tried but it does not seem to work

    get_the_image( array( ‘meta_key’ => ‘Thumbnail’, ‘size’ => ‘archive-thumbnail’, ‘image_class’ => ‘link_to_post’, ‘attachment’ ‘featured’, ‘width’ => 400, ‘height’ => 400, ‘default_image’ => get_template_directory_uri() . ‘/images/archive_image_placeholder.png’ ) );

    any hints

    cheers

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The customization is not so simple, because the Hatch theme assumes that all posts have associated featured images, and assigns a predefined image if it is not the case.

    My recommendation is checking the type of the post to be displayed, and if it is: cpis_image, the code should get the corresponding row from the “wp_cpis_image” table, where the column id correspond to the post id, and apply the unserialize to the string stored in the “preview” column; It is an associative array, and the URL of the thumbnail is stored in the element whose key is: “thumbnail_url”

    If you are needing additional help, don’t hesitate in hire a custom coding service through my private support page:

    https://wordpress.dwbooster.com/support

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘grey placeholder’ is closed to new replies.