• Resolved Ale Urrutia

    (@alectro)


    Hi,

    After updating to 4.5 my feed shows empty.

    So far, I’ve tried to do the following:
    – Activate Twenty Sixteen.
    – Deactivate all plugins.
    – Re-upload all WordPress files but ‘wp-content’ folder.
    – Re-install WordPress.

    Everything failed so not sure what else I can try. Any idea? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have run url i have seen feed list.
    https://awesomescreenshot.com/01d5su1o31

    May i know works is custom post type?

    Is support editor option?

    Thread Starter Ale Urrutia

    (@alectro)

    Yes Rajan, ‘works’ is a custom post type and I added it to the feed with the following code:

    function myfeed_request($qv) {
     	if (isset($qv['feed']) && !isset($qv['post_type']))
     		$qv['post_type'] = array('post', 'page', 'portfolio');
     	return $qv;
     }
     add_filter('request', 'myfeed_request');

    support editor? probably no.

    Ale Urrutia

    Is support editor option?

    Where you register post? Also paste that code

    Thread Starter Ale Urrutia

    (@alectro)

    Sorry, the CPT is ‘portfolio’ not ‘works’.

    Support editor is not an option on my theme.

    the code for the CPT:

    #-----------------------------------------------------------------#
    # Create admin portfolio section
    #-----------------------------------------------------------------#
    function portfolio_register() {  
    
    	 $portfolio_labels = array(
    	 	'name' => __( 'Portfolio', 'taxonomy general name', NECTAR_THEME_NAME),
    		'singular_name' => __( 'Portfolio Item', NECTAR_THEME_NAME),
    		'search_items' =>  __( 'Search Portfolio Items', NECTAR_THEME_NAME),
    		'all_items' => __( 'Portfolio', NECTAR_THEME_NAME),
    		'parent_item' => __( 'Parent Portfolio Item', NECTAR_THEME_NAME),
    		'edit_item' => __( 'Edit Portfolio Item', NECTAR_THEME_NAME),
    		'update_item' => __( 'Update Portfolio Item', NECTAR_THEME_NAME),
    		'add_new_item' => __( 'Add New Portfolio Item', NECTAR_THEME_NAME)
    	 );
    
    	 global $options;
         $custom_slug = null;		
    
    	 if(!empty($options['portfolio_rewrite_slug'])) $custom_slug = $options['portfolio_rewrite_slug'];
    
    	 $portolfio_menu_icon = (floatval(get_bloginfo('version')) >= "3.8") ? 'dashicons-art' : NECTAR_FRAMEWORK_DIRECTORY . 'assets/img/icons/portfolio.png';
    
    	 $args = array(
    			'labels' => $portfolio_labels,
    			'rewrite' => array('slug' => $custom_slug,'with_front' => false),
    			'singular_label' => __('Project', NECTAR_THEME_NAME),
    			'public' => true,
    			'publicly_queryable' => true,
    			'show_ui' => true,
    			'hierarchical' => false,
    			'menu_position' => 9,
    			'menu_icon' => $portolfio_menu_icon,
    			'supports' => array('title', 'editor', 'thumbnail', 'comments', 'revisions')
           );  
    
        register_post_type( 'portfolio' , $args );
    }
    add_action('init', 'portfolio_register');

    The code for feed:

    if(function_exists('add_theme_support')) {
        add_theme_support('automatic-feed-links');
    }
    Thread Starter Ale Urrutia

    (@alectro)

    Solved!

    Not sure what happened but after activating Twenty Sizteen amd reactivating my own Theme the items show at the feed.

    Thanks Rajan for your help!

    Cheers ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Empty feed’ is closed to new replies.