Okay
  Public Ticket #1119595
Blog category not available in recent post settings
Closed

Comments

  •  2
    Karthikeyani started the conversation

    I'm facing issue in selecting category in recent post setting. Though I have more categories, it shows only 'All' and 'Uncategorized' in the multi select box. Please refer attached screenshot.

  •  2
    Karthikeyani replied

    Replacing line number 5

    $blog_types = ($is_admin) ? get_categories() : array('All' => 'all');

    with the following code fixed my problem in the following path \wp-content\themes\salient\nectar\nectar-vc-addons\nectar_maps\recent_posts.php

    $blog_types = ($is_admin) ? get_categories( array('hide_empty'  => false) ) : array('All' => 'all');

    If there is no post for the category it is not displaying in the select box.