• Resolved chibichiii

    (@chibichiii)


    Since two WordPress Updates ago so from 4.1 I believe the problem started or at least that’s when I noticed. The items list from my At a Glance at my dashboard remains empty. No icons or links are shows. Only the Widget title, At a Glance, then the Add/Remove item. WordPress 4.2 running with Suffusion theme. Stop Spammers has prevented… etc.
    I can still choose the items from the drop down when I choose to add and remove. It still regoznises that some are active, showing the remove button instead. But even after removing them and readding them there are no items to be seen.
    I honestly have no idea what has caused this sudden change cause it’s always worked perfectly fine. I haven’t changed anything recently, not added any new plugins which could be colliding with it. I hope you can help me get it back working.

    https://www.ads-software.com/plugins/glance-that/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author uamv

    (@uamv)

    Interesting, indeed. Sorry for this trouble. Although, you’ve not added any new plugins lately, I would suggest as a first step disabling all plugins and switching to a default theme to see if the situation is resolved. Then reactivate your plugins one by one to see if any conflict. An update to one of them could have caused a conflict. For this purpose, you can more easily toggle plugins by adding the plugin Plugin Toggle. Finally switch back to your custom theme.

    Let me know if this experiment produces any results. Thanks. Hope we can sort this out.

    Thread Starter chibichiii

    (@chibichiii)

    Hey there!

    First of all thank you for the swift reply. I have done as you asked and come to the following conclusion. It appears to be an issue with the retrieving of the custom taxonomies. My page uses the plugin : Types – Complete Solution for Custom Fields and Types. Along with Glance that. Because it started to exist of over 500 pages, I have devided them in custom taxonomies like galleries, biographies, Fanfictions and a couple more. In total about 15 different taxonomies including normal wordpress posts and pages.

    I realized when I turn off At Glance, it shows only the pages and posts. Then when I turned it back on, and turned off Types, it did the same it shows the pages and posts. But as soon as I turn on types again the window At Glance returns back empty. I think somehow theplugin trips over getting the custom taxanomies. I hope you can help me solve this problem cause I can’t possibly stop using Types because of the vast amount of custom taxanomies I use to run the page.

    Let me know if you need anything further to help me search for a solution!

    Plugin Author uamv

    (@uamv)

    I will check into Glance That compatibility with Types. Just to confirm, this is the plugin that you are utilizing for custom post types?

    Thread Starter chibichiii

    (@chibichiii)

    Thank you very much!

    Yes that is indeed the plugin I use for the custom taxanomies on my website. A link to my website is here https://merlin.mythandmagic.nl

    Firstly, thanks UaMV for this great plugin!
    I replicate the issue with Types.
    Custom posts types are “added successfully” but nothing shows up.

    Plugin Author uamv

    (@uamv)

    Okay, finally checked this out. It appears that it is an issue with the Types plugin. It is using dashboard_glance_items as an action rather than a filter.

    I would suggest reaching out to the Types authors to check about first rectifying the issue in their plugin and let me know what you find. I’d love to assist as I’m able. Thanks.

    Thread Starter chibichiii

    (@chibichiii)

    Hey there!

    Thnx again for the reply, I opened a support request at the Types plugin to see what they will say about it.

    Currently I solved my issue by adding the functionality directly to my functions.php in my theme. Which solved the issue for me as well.

    // Custom post types counts
      $post_types = get_post_types( array( '_builtin' => false ), 'objects' );
      foreach ( $post_types as $post_type ) {
        if($post_type->show_in_menu==false) {
          continue;
        }
        $num_posts = wp_count_posts( $post_type->name );
        $num = number_format_i18n( $num_posts->publish );
        $text = _n( $post_type->labels->singular_name, $post_type->labels->name, $num_posts->publish );
        if ( current_user_can( 'edit_posts' ) ) {
            $output = '<a href="edit.php?post_type=' . $post_type->name . '">' . $num . ' ' . $text . '</a>';
        }
        // pending items count
        // if ( $num_posts->pending > 0 ) {
        //     $num = number_format_i18n( $num_posts->pending );
        //     $text = _n( $post_type->labels->singular_name . ' pending', $post_type->labels->name . ' pending', $num_posts->pending );
        //     if ( current_user_can( 'edit_posts' ) ) {
        //         $output .= '<a class="waiting" href="edit.php?post_status=pending&post_type=' . $post_type->name . '">' . $num . ' pending</a>';
        //     }
        // }
        echo '<li class="page-count ' . $post_type->name . '-count">' . $output . '</td>';
      }
    }
    Thread Starter chibichiii

    (@chibichiii)

    Hey there,

    Just going to close this thread here as the issue is actually resolved.

    Here’s the link provided by Types, showing that the custom posts can be added to the dashboard widget on their own.

    https://iworks.pl/2015/07/15/add-entries-at-a-glance-dashboard/?lang=en

    Hi Guys

    I fixed usage of dashboard_glance_items. Types 1.8 will be use this as a filter.

    Thank you.

    Marcin

    Plugin Author uamv

    (@uamv)

    Thanks, Marcin! I’ll be sure to check this out once v1.8 is released and look at compatibility.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Glance That not showing any items’ is closed to new replies.