Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3087720
Similar Posts Images not showing
Closed

Comments

  •  4
    Thomas started the conversation

    Hi,


    as you did not give any reply to this question in my other Treat i will start for this case a new one. Please see images attached, there are 2 areas in the page which are not showing the images in the "similar post" section, even with relocating the thumbnails and i tried also post a new entry in each (Diretory for Activitys and Clissified Ads), not pushed the Script to see the images like it was helping with the "normal" blog posts.

    Any idea what i can try?

    Browsercache and Websitecashe all deleted and reloaded, so this was not causing it...

    Attached files:  Bildschirmfoto 2022-07-19 um 21.36.00.jpg
      Bildschirmfoto 2022-07-19 um 21.43.11.jpg

  •  2,278
    PenciDesign replied

    Hi,

    Please send me a URL related to this problem, I'll check and then send you a solution.

    Regards,
    PenciDesign.


  •   Thomas replied privately
  •  2,278
    PenciDesign replied

    Hi,

    The image doesn't display because you've not added the featured image for this post type.

    Please check your custom post type settings, make sure you've enabled the feature image option then upload for each posted item.

    Regards,
    PenciDesign.


  •  4
    Thomas replied

    Hmm,


    how can i chack that? Can not find any menue point in this.

  •  2,278
    PenciDesign replied

    Hi,

    You should check it from the Classified Ads plugin. The content of your link comes from a custom post type by the plugin you've installed.

    Regards,
    PenciDesign.


  •  4
    Thomas replied

    Both Plug-ins do not show the Featured Image section in the editor. So i heckt what i can do and found this:


    https://stackoverflow.com/questions/12543563/wordpress-adding-featured-image-to-custom-post-type


    I use this and put it into the functions.php of you themeof course with the post type informations i needed.

    add_post_type_support( 'forum', 'thumbnail' );
    

    Now it shows me in the Editor of the Plug Ins this Featured Image thing, but still, after i changed in all entries the not existing Featured Image into a featured image noting changed in the front page still showing this ugly grey thumb in "Related posts"...

  •  4
    Thomas replied

    So if you have any idea what i can try give me a hint. For the moment i deleted the additional code from the functions.php file.

  •  4
    Thomas replied

    Other option i would use, if you can say how i can place this is:


    HIDE the Related Posts from this 2 post types which would not be a problem for me. Is there any code etc. i can add to hide them ONLY in this 2 parts of the Website?

  •  2,278
    PenciDesign replied

    Hi,

    You can force hiding the Related Posts for advert post type by adding the following CSS code to your site:

    body.single-advert .penci-post-related {
        display: none;
    }

    Regards,
    PenciDesign.



  •  4
    Thomas replied

    Hi, thank you, that sound interesting, i will try it later the day and let you know. Besides that which CSS should i use for the same solustion with the Directory for Activitys?

  •  2,278
    PenciDesign replied

    Hi,

    This code will apply to the Directory post type:

    body.single-acadp_listings .penci-post-related {
        display: none;
    }


    Regards,
    PenciDesign.


  •  4
    Thomas replied

    Hi Guys,


    this both CSS Codes are working, thank you very much!