Support » Plugins and Hacks » Infinite Slider » infinite slider problem

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author kinstahosting

    (@kinstahosting)


    Hey Matemare,

    Did you put the PHP code in the .php files or in the Page itself? Because for Pages you’ll have to use the shortcode version.

    The slider will use the Featured Images from Posts, Pages or Custom Post Types. If you had featured images before you activated Infinite Slider, you’ll have to run (not just activate, but actually run) the Force Regenerate Thumbnails plugin (free and available from wp.org).

    Cheers,
    Mark

    Hey thanks for the fast answer, i put the code inside home page .php files after the header inside main of site and another shortcode inside a page, but with touchfolio theme i can’t add a featured image into a post so nothing appear …
    i had made a test with twenty thirteen theme and everything work..

    Thanks

    Plugin Author kinstahosting

    (@kinstahosting)


    Hm looks like that your theme doesn’t support featured images then 🙁 That’s too bad, however not the end of the world! 🙂 You could create a Custom Post Type for example “infinite images” and activate the “Featured Images”, well, feature for those and then have the Infinite Slider display images from only those post types by updating the “Post Type” option on the Infinite Slider Settings page to “infinite-images” based on that previous example.

    You could either using something like Pods to create a CPT or generate custom code for your functions.php via GenerateWP or something similar:

    // Register Custom Post Type
    function infinite_slider_images() {
    
    	$labels = array(
    		'name'                => _x( 'Infinite Slider Images', 'Post Type General Name', 'text_domain' ),
    		'singular_name'       => _x( 'Infinite Slider Image', 'Post Type Singular Name', 'text_domain' ),
    		'menu_name'           => __( 'Infinite Slider Images', 'text_domain' ),
    		'parent_item_colon'   => __( 'Parent Image:', 'text_domain' ),
    		'all_items'           => __( 'All Images', 'text_domain' ),
    		'view_item'           => __( 'View Image', 'text_domain' ),
    		'add_new_item'        => __( 'Add New Image', 'text_domain' ),
    		'add_new'             => __( 'Add New', 'text_domain' ),
    		'edit_item'           => __( 'Edit Image', 'text_domain' ),
    		'update_item'         => __( 'Update Image', 'text_domain' ),
    		'search_items'        => __( 'Search Images', 'text_domain' ),
    		'not_found'           => __( 'Not found', 'text_domain' ),
    		'not_found_in_trash'  => __( 'Not found in Trash', 'text_domain' ),
    	);
    	$args = array(
    		'label'               => __( 'infinite_slider_images', 'text_domain' ),
    		'description'         => __( 'Images for Infinite Slider', 'text_domain' ),
    		'labels'              => $labels,
    		'supports'            => array( 'title', 'editor', 'thumbnail', ),
    		'hierarchical'        => false,
    		'public'              => true,
    		'show_ui'             => true,
    		'show_in_menu'        => true,
    		'show_in_nav_menus'   => true,
    		'show_in_admin_bar'   => true,
    		'menu_position'       => 5,
    		'menu_icon'           => '',
    		'can_export'          => true,
    		'has_archive'         => false,
    		'exclude_from_search' => true,
    		'publicly_queryable'  => true,
    		'capability_type'     => 'page',
    	);
    	register_post_type( 'infinite_slider_images', $args );
    
    }
    
    // Hook into the 'init' action
    add_action( 'init', 'infinite_slider_images', 0 );

    Again, the code above goes into your theme’s functions.php file! After that you’ll see a new menu item appear in your WP-Admin that will have the Featured Images option.

    I hope this helps! 🙂

    Yes a lot!!
    I think Podswill the solution.
    Many Thanks.

    Hello,

    I have the same problem, i have made what kinstahosting said but that’s not working, any one can help me ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘infinite slider problem’ is closed to new replies.