{"id":10301,"date":"2011-11-13T12:34:50","date_gmt":"2011-11-13T11:34:50","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/problem-z-sliderem\/"},"modified":"2016-08-05T21:45:36","modified_gmt":"2016-08-05T21:45:36","slug":"problem-z-sliderem","status":"closed","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/problem-z-sliderem\/","title":{"rendered":"Problem z sliderem"},"content":{"rendered":"<p>Witam, mam ogromny problem z sliderem a mianowicie zamiast wy\u015bwietlania tego czego ja oczekuj\u0119 czyli wpis\u00f3w ze wskazanej kategorii nie wy\u015bwietla mi si\u0119 kompletnie nic. Kombinuj\u0119 jak ko\u0144 pod g\u00f3r\u0119 ju\u017c 2 dzie\u0144 i nie mog\u0119 doj\u015b\u0107 co jest nie tak.<\/p>\n<p>Kod slidera:<\/p>\n<blockquote>\n<p>&lt;div id=&#8221;mygallery&#8221; class=&#8221;stepcarousel&#8221;&gt;<br \/>\n&lt;div class=&#8221;belt&#8221;&gt;<\/p>\n<p>&lt;?php<br \/>\n\t$slidecat = get_option(&#8217;stlsh_sldcat&#8217;);<br \/>\n\t$slidenum = get_option(&#8217;stlsh_numbslid&#8217;);<br \/>\n\t$my_query = new WP_Query(&#8217;category_name= .&#8217;&amp;slidecat .&#8217;&amp;showposts= &#8217;.$slidenum.&#8221;);<br \/>\nwhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();$do_not_duplicate = $post-&gt;ID; &#8222;thumb&#8221;<br \/>\n?&gt;<br \/>\n &lt;div class=&#8221;panel&#8221; &gt;<\/p>\n<p>&lt;div class=&#8221;thumbnail2&#8243;&gt;<br \/>\n&lt;?php \/\/ This will show the image and link the image to the post. Alter the width and height (in both places) to your needs.?&gt;<br \/>\n         &lt;?php if ( get_post_meta($post-&gt;ID, 'thumb&#8217;, true) ) {?&gt;<br \/>\n\t&lt;div class=&#8221;postthumb&#8221;&gt;<br \/>\n\t<a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php bloginfo(&#8217;stylish&#8217;); ?&gt;\/timthumb.php?src=&lt;?php echo get_post_meta($post-&gt;ID, &#8222;thumb&#8221;, $single = true); ?&gt;&amp;h=400&amp;w=580&amp;zc=1&#8243; alt=&#8221;&lt;?php the_title();?&gt;&#8221; width=&#8221;290&#8243; height=&#8221;200&#8243;\/&gt;<\/a><br \/>\n\t&lt;\/div&gt;<br \/>\n&lt;?php }?&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;imgshad&#8221;&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>&lt;?php endwhile; ?&gt; <\/p>\n<p>&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<\/blockquote>\n<p>Kod nag\u0142\u00f3wka: <\/p>\n<blockquote>\n<p>&lt;!DOCTYPE html PUBLIC &#8222;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8222;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;head profile=&#8221;http:\/\/gmpg.org\/xfn\/11&#8243;&gt;<\/p>\n<p>\t&lt;title&gt;&lt;?php bloginfo(&#8217;name&#8217;) ?&gt;&lt;?php if ( is_404() ) : ?&gt; \u00bb &lt;?php _e(&#8217;Not Found&#8217;) ?&gt;&lt;?php elseif ( is_home() ) : ?&gt; \u00bb &lt;?php bloginfo(&#8217;description&#8217;) ?&gt;&lt;?php else : ?&gt;&lt;?php wp_title() ?&gt;&lt;?php endif ?&gt;&lt;\/title&gt;<\/p>\n<p>\t&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;&lt;?php bloginfo(&#8217;html_type&#8217;); ?&gt;; charset=&lt;?php bloginfo(&#8217;charset&#8217;); ?&gt;&#8221; \/&gt;<br \/>\n\t&lt;meta name=&#8221;generator&#8221; content=&#8221;WordPress &lt;?php bloginfo(&#8217;version&#8217;); ?&gt;&#8221; \/&gt;<br \/>\n\t&lt;!&#8211; leave this for stats &#8211;&gt;<\/p>\n<p>\t&lt;?php<br \/>\n\t$tcol = get_option(&#8217;stlsh_tempcol&#8217;); <\/p>\n<p>\t?&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;?php bloginfo(&#8217;stylesheet_directory&#8217;); ?&gt;\/style-&lt;?php echo ($tcol); ?&gt;.css&#8221; type=&#8221;text\/css&#8221; media=&#8221;screen&#8221; \/&gt;<\/p>\n<p>\t&lt;link rel=&#8221;alternate&#8221; type=&#8221;application\/rss+xml&#8221; title=&#8221;RSS 2.0&#8243; href=&#8221;&lt;?php bloginfo(&#8217;rss2_url&#8217;); ?&gt;&#8221; \/&gt;<br \/>\n\t&lt;link rel=&#8221;alternate&#8221; type=&#8221;text\/xml&#8221; title=&#8221;RSS .92&#8243; href=&#8221;&lt;?php bloginfo(&#8217;rss_url&#8217;); ?&gt;&#8221; \/&gt;<br \/>\n\t&lt;link rel=&#8221;alternate&#8221; type=&#8221;application\/atom+xml&#8221; title=&#8221;Atom 0.3&#8243; href=&#8221;&lt;?php bloginfo(&#8217;atom_url&#8217;); ?&gt;&#8221; \/&gt;<br \/>\n\t&lt;link rel=&#8221;pingback&#8221; href=&#8221;&lt;?php bloginfo(&#8217;pingback_url&#8217;); ?&gt;&#8221; \/&gt;&lt;?php wp_head(); ?&gt;<br \/>\n&lt;!&#8211;[if lte IE 6]&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; media=&#8221;all&#8221; href=&#8221;&lt;?php bloginfo(&#8217;stylesheet_directory&#8217;); ?&gt;\/ie6style.css&#8221; \/&gt;<br \/>\n&lt;![endif]&#8211;&gt;<br \/>\n&lt;!&#8211;[if IE 7]&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; media=&#8221;all&#8221; href=&#8221;&lt;?php bloginfo(&#8217;stylesheet_directory&#8217;); ?&gt;\/ie7style.css&#8221; \/&gt;<br \/>\n&lt;![endif]&#8211;&gt;<\/p>\n<p>&lt;!&#8211;[if lt IE 7]&gt;<br \/>\n&lt;script src=&#8221;http:\/\/ie7-js.googlecode.com\/svn\/version\/2.0(beta3)\/IE7.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;&lt;![endif]&#8211;&gt;<\/p>\n<p>\t&lt;?php wp_get_archives(&#8217;type=monthly&amp;format=link&#8217;); ?&gt;<br \/>\n\t&lt;?php \/\/comments_popup_script(); \/\/ off by default ?&gt;<br \/>\n\t&lt;?php wp_head(); ?&gt;<\/p>\n<p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/jquery.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/stepcarousel.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>stepcarousel.setup({<br \/>\n\tgalleryid: 'mygallery&#8217;, \/\/id of carousel DIV<br \/>\n\tbeltclass: 'belt&#8217;, \/\/class of inner &#8222;belt&#8221; DIV containing all the panel DIVs<br \/>\n\tpanelclass: 'panel&#8217;, \/\/class of panel DIVs each holding content<br \/>\n\tautostep: {enable:true, moveby:1, pause:3000},<br \/>\n\tpanelbehavior: {speed:500, wraparound:true, persist:true},<br \/>\n\tdefaultbuttons: {enable: true, moveby: 1, leftnav: ['&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/images-&lt;?php echo ($tcol); ?&gt;\/carleft-trans.png&#8217;, 25, 105], rightnav: ['&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/images-&lt;?php echo ($tcol); ?&gt;\/carright-trans.png&#8217;, -47, 105]},<br \/>\n\tstatusvars: [&#8217;statusA&#8217;, 'statusB&#8217;, 'statusC&#8217;], \/\/register 3 variables that contain current panel (start), current panel (last), and total panels<br \/>\n\tcontenttype: [&#8217;inline&#8217;] \/\/content setting [&#8217;inline&#8217;] or [&#8217;ajax&#8217;, 'path_to_external_file&#8217;]<br \/>\n})<\/p>\n<p>&lt;\/script&gt;<br \/>\n&lt;script language=&#8221;javascript&#8221; type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/jquery.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/widget.js&#8221;&gt;&lt;\/script&gt;<br \/>\n &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/custom.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/menu.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/jquery.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/js\/toggle.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>\/**<br \/>\nVertigo Tip by www.vertigo-project.com<br \/>\nRequires jQuery<br \/>\n*\/<\/p>\n<p>this.vtip = function() {<br \/>\n    this.xOffset = -10; \/\/ x distance from mouse<br \/>\n    this.yOffset = 10; \/\/ y distance from mouse       <\/p>\n<p>    $(&#8222;.vtip&#8221;).unbind().hover(<br \/>\n        function(e) {<br \/>\n            this.t = this.title;<br \/>\n            this.title = &#8221;;<br \/>\n            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);<\/p>\n<p>            $(&#8217;body&#8217;).append( '&lt;p id=&#8221;vtip&#8221;&gt;&lt;img id=&#8221;vtipArrow&#8221; \/&gt;&#8217; + this.t + '&lt;\/p&gt;&#8217; );<\/p>\n<p>            $(&#8217;p#vtip #vtipArrow&#8217;).attr(&#8222;src&#8221;, '&lt;?php bloginfo(&#8217;template_directory&#8217;); ?&gt;\/images-&lt;?php echo ($tcol); ?&gt;\/vtip_arrow.png&#8217;);<br \/>\n            $(&#8217;p#vtip&#8217;).css(&#8222;top&#8221;, this.top+&#8221;px&#8221;).css(&#8222;left&#8221;, this.left+&#8221;px&#8221;).fadeIn(&#8222;slow&#8221;);<\/p>\n<p>        },<br \/>\n        function() {<br \/>\n            this.title = this.t;<br \/>\n            $(&#8222;p#vtip&#8221;).fadeOut(&#8222;slow&#8221;).remove();<br \/>\n        }<br \/>\n    ).mousemove(<br \/>\n        function(e) {<br \/>\n            this.top = (e.pageY + yOffset);<br \/>\n            this.left = (e.pageX + xOffset);<\/p>\n<p>            $(&#8222;p#vtip&#8221;).css(&#8222;top&#8221;, this.top+&#8221;px&#8221;).css(&#8222;left&#8221;, this.left+&#8221;px&#8221;);<br \/>\n        }<br \/>\n    );            <\/p>\n<p>};<\/p>\n<p>jQuery(document).ready(function($){vtip();}) <\/p>\n<p>&lt;\/script&gt;<\/p>\n<p>&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n  &lt;div id=&#8221;wrapper&#8221;&gt;<br \/>\n  &lt;div id=&#8221;header&#8221;&gt;<br \/>\n  &lt;div class=&#8221;header&#8221;&gt;<br \/>\n  &lt;div class=&#8221;logo&#8221;&gt;<br \/>\n  &lt;?php<br \/>\n\t$tlogo = get_option(&#8217;stlsh_tlogo&#8217;); <\/p>\n<p>\t?&gt;<br \/>\n                <a>&#8221; title=&#8221;&lt;?php bloginfo(&#8217;description&#8217;); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php if ( ($tlogo) != &#8222;&#8221;) { echo ($tlogo); } else {   bloginfo(&#8217;template_directory&#8217;);?&gt;\/images-&lt;?php echo ($tcol); ?&gt;\/logo-trans.png &lt;?php } ?&gt;&#8221; alt=&#8221;&#8221; style=&#8221;vertical-align:bottom; border:0px; height:90px ; width:300px;margin-top:10px;&#8221; \/&gt;<\/a><\/p>\n<p>  &lt;\/div&gt;<\/p>\n<p>  &lt;\/div&gt;<\/p>\n<p>  &lt;div class=&#8221;navigation&#8221;&gt;<br \/>\n  &lt;div class=&#8221;navleft&#8221;&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;div class=&#8221;navcenter&#8221;&gt;<br \/>\n  &lt;div class=&#8221;navbar&#8221;&gt;<br \/>\n  &lt;ul id=&#8221;nav&#8221;&gt;<\/p>\n<p> &lt;?php if (get_option(&#8217;stlsh_deshpl&#8217;) == 'display&#8217;) : ?&gt;<\/p>\n<li><a>&#8222;&gt;Home<\/a><\/li>\n<p>&lt;?php else : ?&gt;&lt;?php endif; ?&gt;<br \/>\n&lt;?php wp_list_pages(&#8217;sort_column=menu_order&amp;title_li=&#8217;); ?&gt;<\/p>\n<p>  &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;div class=&#8221;navright&#8221;&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<\/p>\n<p>  &lt;div class=&#8221;toppannel&#8221;&gt;<br \/>\n  &lt;div class=&#8221;tpl&#8221;&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;div class=&#8221;tps&#8221;&gt;<br \/>\n  &lt;div class=&#8221;welcom&#8221;&gt;<br \/>\n   &lt;div class=&#8221;welcomtitle&#8221;&gt;<br \/>\n   &lt;?php<br \/>\n\t$wtitle = get_option(&#8217;stlsh_wtitle&#8217;); <\/p>\n<p>\t?&gt;<br \/>\n   &lt;h1&gt;&lt;?php if ( ($wtitle) != &#8222;&#8221;) { echo ($wtitle); } else { echo ( &#8221; Welcome World ! &#8221; );} ?&gt;&lt;\/h1&gt;<br \/>\n  &lt;\/div&gt;<\/p>\n<p>  &lt;div class=&#8221;welcomdesc&#8221;&gt;<br \/>\n  &lt;?php<br \/>\n\t$wmessage = get_option(&#8217;stlsh_wmessage&#8217;); <\/p>\n<p>\t?&gt;<br \/>\n  &lt;h2&gt;&lt;?php if ( ($wmessage) != &#8222;&#8221;) { echo ($wmessage); } else { echo ( &#8221; Here you can put your welcome message or blog description. &#8221; );} ?&gt;&lt;\/h2&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<\/p>\n<p>  &lt;div id=&#8221;slider&#8221;&gt;<\/p>\n<p>\t\t &lt;?php  $includes_path = TEMPLATEPATH . '\/includes\/&#8217;;?&gt;<br \/>\n&lt;?php include($includes_path . '\/slide.php&#8217;); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;tpr&#8221;&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n\t &lt;div class=&#8221;categmenu&#8221;&gt;<br \/>\n  &lt;ul id=&#8221;nav2&#8243;&gt;<\/p>\n<p>  &lt;\/div&gt;<\/p>\n<p>  &lt;\/div&gt;<\/p>\n<\/blockquote>\n<p>Co jest nie tak? Dodam, \u017ce ca\u0142o\u015b\u0107 jest oparta na stronach. Wpisy maj\u0105 by\u0107 tylko w sliderze.<\/p>\n","protected":false},"template":"","class_list":["post-10301","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10301\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}