Quantcast
Channel: WordPress.org Forums » [WP Parallax Content Slider] Support
Viewing all articles
Browse latest Browse all 293

Mihail Semjonov on "[Plugin: WP Parallax Content Slider] Page slides not showing"

$
0
0

Hi there
I was making slideshow with your plugin and didn't found the solution for page slide (not post or custom post). They just didn't showed up.. I wanted to some of theme just show..
so I made some changes and now when i add to page custom field
key = "slider"
value = true
Then it show's that page..
I'll paste changed rows, so you could compare them, starts from 207

if($prlx_slider_content_type != 'page') {
            $args = array( 'post_type' => $typ, // If you wan't to choose custom types, you can set your own array here (eg. $typ = array('jobs'); )
					   'orderby' => $prlx_sort,
					   'order' => $prlx_order,
					   'numberposts' =>  $prlx_slider_nb_articles,
					   'cat' => $cat,
					   'suppress_filters'=>0 ); // Added for WPML support
            $myposts = get_posts( $args );
        } else {
            $args = new WP_Query(array(
                'post_type' => $typ, // If you wan't to choose custom types, you can set your own array here (eg. $typ = array('jobs'); )
                'orderby' => $prlx_sort,
                'order' => $prlx_order,
                'numberposts' =>  $prlx_slider_nb_articles,
                'meta_key' => 'slider',
                'suppress_filters'=>0 ));

           $myposts = $args->posts;
        }

Plese thing about adding custom field to page or post or whatewer so i could select page as featured and it will display in slideshow.
If you already made that than how to find it ? where to change what i should output ?

http://wordpress.org/extend/plugins/wp-parallax-content-slider/


Viewing all articles
Browse latest Browse all 293

Trending Articles