Default image resists to show

This topic contains 41 replies, has 6 voices, and was last updated by  Kai Liu 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #465634

    Kai Liu
    Expired Member
    Post count: 368

    It is the first time I encounter this.

    In a CPT, I have loaded 2 categories without issue, they all have default image shown up. Now the third category listings have no default image, I have checked the following:

    1. database table, compared listings in same CPT, nothing unusual, with correct category ID etc.
    2. checked category setting, same as all others
    3. Term Count done

    Attached image showing all three categories listings, boxed by category.

    Please advise what have I missed?

    Thanks

    Sam

    #465641

    Guust
    Moderator
    Post count: 29970

    Did you add a default image to the Massage category?

    #465646

    Kai Liu
    Expired Member
    Post count: 368

    yes.. mentioned in #2. every setting is the same as those working categories.

    #465648

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
    #465655

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
    #465657

    Kor
    Moderator
    Post count: 16516

    Hi Kai Liu,

    Thanks for your reply. This sounds like a cache issue on your server/Website. Could you try using another browser? Also, share the URL of the page in question and your WP admin access here in private reply.

    Thanks!

    #465659

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
    #465693

    Guust
    Moderator
    Post count: 29970

    I could not find the image in media although it exists in uploads.
    So I re-uploaded it to the category and all seems fine now.
    Please check.

    #465721

    Kai Liu
    Expired Member
    Post count: 368

    Thanks Guust, it works now. This is what i havr missed. WP treat upload and media differently?

    #465725

    Kai Liu
    Expired Member
    Post count: 368

    Is CPT listing customizable? eg I want to display in random among categories within this CPT.

    Currently it is displayed in descending publish date time order.

    thanks

    Sam

    #465734

    Guust
    Moderator
    Post count: 29970

    WP treat upload and media differently?
    Yes, normally only media uploaded through the admin area finds its way into media.

    Is CPT listing customizable?
    Yes: GD > Places [or other CPT] Settings > Sorting Options tab > Random > Default sort > Yes

    #465823

    Kai Liu
    Expired Member
    Post count: 368

    Hi Guust,

    Would there be bug in importing process as no show image happened again. I did all routine check and found something in database where feature_image field has un-intentional data. In my CSV there is no such field, like all my other csv, and after importing, it should show NULL value. But this one inserted a YYYYMM in front of NULL value. Could it be an accident insert during processing, this is year and month of when I import.

    This happened several times, each time I discover this because of default image not showing. As I mentioned, I do not have such field in CSV, so this field should normally stay NULL.

    I am deleting all records for this category and re-import again see what happen. I did this for couple of imports before and they worked in second import with the same csv.

    Please advise.

    Sam

    #465896

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
    #466606

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #466617

    Kai Liu
    Expired Member
    Post count: 368

    Yes, still like that. It is not csv issue i believe. Compared data in database, those with image and without has exactly the same data fields, empty fields all with same value as well.

    I use browser debug tool and checked that the image path for problem listing showing ../uploads/2019/01/NULL

    In database, both showing and not showing default image listings have the same NULL value.

    What can you think of the possible issue will be?

Viewing 15 posts - 1 through 15 (of 42 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket