Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Jordan9098,

    can you change your Theme for a test and try it whith another like ‘Twenty-Sixteen’? In your used Theme the Theme files can be different ones for both pages.

    Greetings Daniel

    Thread Starter jordan9098

    (@jordan9098)

    Hi Daniel,
    Thanks for the help.

    I did what you said but it didn’t work ??
    Switched to ‘Twenty-Sixteen’ theme.

    Community Posts still not showing on main page:
    https://www.dropbox.com/s/io2o9enc8x5pqyf/twenty-sixteen-main-page.jpg

    They only show on article pages:
    https://www.dropbox.com/s/b3ul6eoqxpy2659/twenty-sixteen-article-page.jpg

    If it’s any help, I tried manually debugging the widget’s cat-posts.php file (by adding echo statements).
    $cat_posts->have_posts() returns 0 (false) on main page, whereas on article pages it returns 1 (true).

    So i concluded that for some reason php thinks that said category has no posts – which is not true.

    I have not altered/damaged the files if thats what you would think ??
    I just added the echo before the list item builder:
    while ( $cat_posts->have_posts() ) { … }

    Plus, afterwards i even tried uninstalling and reinstalling the Category posts widget. So the widget’s files are intact 100%.

    If you have any ideas / suggestions, it would be much appreciated.

    Plugin Author Daniel Floeter

    (@kometschuh)

    You use the widget two times.

    Can you disable one and test with only one instance.

    We fix a bug with more instances. Are you familair with GitHub? Because you can download the code there (https://github.com/mkrdip/category-posts-widget) and copy it to your plugin folder ([your-wp-installation]/wp-content/plugins/category-posts-widget) to your wordpress installation.

    Thread Starter jordan9098

    (@jordan9098)

    Hi, thanks for the help again.

    I tried removing one widget, but it didn’t help. my ‘Community Posts’ category still didn’t show on main page.

    main page:
    https://www.dropbox.com/s/2jm8rp1kuup7sq6/main-page.jpg

    article page:
    https://www.dropbox.com/s/2lu3d7ck89tc485/article-page.jpg

    dashboard:
    https://www.dropbox.com/s/lo4deof307i3poe/dashboard.jpg

    I’ll try to use the source files from github now.

    Thread Starter jordan9098

    (@jordan9098)

    I updated my files (cat-posts.php and cat-posts.css) to the newest version from your github repository, and the problem still persists ??

    If you have any idea when it will be fixed or have another suggestion i would appreciate it.

    Thanks again!

    Plugin Author Daniel Floeter

    (@kometschuh)

    In file cat-post.php in line 466 can you add is_frontpage() or is_home()?

    cat-post.php: line 466
    if ( is_singular() || is_frontpage() )

    or

    if ( is_singular() || is_home() )

    Thread Starter jordan9098

    (@jordan9098)

    I tried both,

    When i added is_frontpage() to the if clause, the main page was stuck on “Loading…” forever.

    When i added is_home() there was no change, still not displaying

    Plugin Author Daniel Floeter

    (@kometschuh)

    It’s not easy find a bug when I can’t debug.

    Can you deactivate other widgets and let only our widget in the sidebar? Or change the order, e.g. our widget at first?

    Do you use a free Theme. If yes, can your send a download link?

    Wich setting do you have in ‘Customizer’ for ‘Static Font Page’? Can you change the the front page settings?

    Do you use a multi page?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Post items not showing on main page (but are shown on article pages)’ is closed to new replies.