Morocco English
Forum Replies Created
-
I have arleady been using this code :
<?php $fPosts = new WP_Query( array( 'offset' => 1, 'posts_per_page' => 3, 'category_slug' => '(proverbs,jokes)', 'post__in' => get_option("sticky_posts"), 'ignore_sticky_posts' => 1, )); ?> <?php if ( $fPosts->have_posts() ) : ?> /* etc .... */
So can I replace “‘category_slug’ => ‘(proverbs,jokes)'” with : ‘category_name=staff,news’ …. ????
Thanks Mr Alchymyth
I haven’t posted this issued until I searched all the night about this problem …
I don’t rush to post here whenever I have some problem ….
I have arleady tried “cat_id” as : cat_id => ‘(5,6)’
I ve tried different options …
It still doesn’t work
Do I should to replace category_name bu category_slug ???ah that’s why … I will try now
thanks !
no their names !
Forum: Fixing WordPress
In reply to: [Smooth Slider] How to embed a video on homepage like a post ?sorry
I am in the wrong placeForum: Themes and Templates
In reply to: how to add "onload=”mbSet(’menu’)" to BODY tag of every page ???Thank you Andrew
how can I add it to this JS script<script type="text/javascript"> /*<![CDATA[*/ var mbA,mbT,mbTf,mbSf; var mbR = []; function mbSet(m) { if (document.getElementById&&document.createElement) { var m=document.getElementById(m); mbR[mbR.length] = m; var i; e=m.getElementsByTagName('a'); if (!mbTf) mbTf=new Function('mbHT();'); if (!mbSf) mbSf=new Function('mbS(this);'); for (i=0;i<e.length;i++) { e[i].onmouseout=e[i].onblur=mbTf; e[i].onmouseover=e[i].onfocus=mbSf; } m=m.getElementsByTagName('ul'); for (i=0;i<m.length;i++) { mbH(mbL(m[i])); } }} function mbHA() { if (mbA) { while (mbA) mbH(mbA); mbHE('block'); } } function mbHT() { if (!mbT) mbT=setTimeout('mbHA();', 0); } function mbTC() { if (mbT) { clearTimeout(mbT); mbT=null; } } function mbS(m) { mbTC(); if (mbA) while (mbA&&m!=mbA&&mbP(m)!=mbA) mbH(mbA); else mbHE('none'); if (mbM(m)) { mbSH(m,'block'); mbA=m; } } function mbH(m) { if (m==mbA) mbA=mbP(m); mbSH(m,'none'); mbT=null; } function mbL(m) { while (m && m.tagName != 'A') m = m.previousSibling; return m; } function mbM(l) { while (l && l.tagName != 'UL') l = l.nextSibling; return l; } function mbP(m) { var p = m.parentNode.parentNode; if (p.tagName == 'UL') { var i = 0; while (i <mbR.length) { if (mbR[i] == p) return null; i++; } } else { return null; } return mbL(p); } function mbSH(m,v) { m.className=v; mbM(m).style.display=v; } function mbHE(v) { mbHEV(v,document.getElementsByTagName('select')); } function mbHEV(v,e) { for (var i=0;i<e.length;i++) e[i].style.display=v; } /*]]>*/ </script>
ok I added
.widget_categories a {
color: #FFF;I think now it’s ok
?
Yes I dropped it and the children link color works !
but other links turned to red color lol
may be I should remove
#sidebar .widget a {
color: #fff;which probably keeps all links in white color …..
Thanks
This part of css may help you to sort the issue out :
.children a:link { display:block; color: #09F; /* This is the property which doesn't work */ } /* The CSS include this code which may help you to sort the problem out */ #sidebar .widget li, #meta.widget a { display: block; background: url(library/images/bullet.png) no-repeat right 12px; padding: 9px 15px 9px 0; text-decoration: none; font: bold 13px Arial, Helvetica, sans-serif; color: #fff; border-bottom: 1px solid #242424; border-top: 1px solid #5e5e5e; margin-bottom: 0; #sidebar { margin-top: 2.2em; } #sidebar.col300 { width:270px; margin-left: 0; } #sidebar .widget { margin: 0 30px 0 0; padding: 0 0 2em 0; font: Arial, Helvetica, sans-serif; color: #f1f1f1; text-shadow: -1px -1px #000; } #sidebar .widget a { color: #fff; text-decoration: none; } #sidebar .widget a:hover { text-decoration: underline; }
Forum: Themes and Templates
In reply to: how to set a FIXED size to the post thumbails ?so can I add this code properly :
set_post_thumbnail_size( 50, 50 )
??
Forum: Themes and Templates
In reply to: how to set a FIXED size to the post thumbails ?from codex :
set_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, resize mode
Set the default Post Thumbnail size by cropping the image (either from the sides, or from the top and bottom):
set_post_thumbnail_size( 50, 50, true ); // 50 pixels wide by 50 pixels tall, crop mode
Forum: Themes and Templates
In reply to: how to set a FIXED size to the post thumbails ?<?php the_post_thumbnail( array( 150,120) );?>
?????Forum: Themes and Templates
In reply to: how to set a FIXED size to the post thumbails ?some php code keep the thumbais with fixed size whatever are their origin sizes
just some code to add here
<?php the_permalink() ?>"><?php the_post_thumbnail( );?>