Support » Plugin: CP Image Store with Slideshow » grey placeholder

  • Resolved booke022

    (@booke022)


    Hello thanks for your help yesterday it has worked out.

    Now I have a problem with hatch theme archive placeholder not showing the images from the store. The box is there and ig I click I can get the image but not under the category. any help would be hilly appreciated

    cheers

    T.

    https://wordpress.org/plugins/cp-image-store/

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.

    you must have read my mind I am doing that now

    Thank you for all your help

    Kind regards

    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:

    http://wordpress.dwbooster.com/support

    Best regards.

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