Archive for the 'Wordpress' category

WP CSS Menu, multilevel, print on the way

.menu ul li.widget ul li ul{ display:none; } .menu ul li.widget ul li.current_page_ancestor ul {

Limit the_excerpt keyword number

function limit_words($string, $word_limit) { // creates an array of words from $string (this will be

WP meniu simplu primar

Limitează numărul de caractere din titlu

echo substr(the_title(”, ”, FALSE), 0, 50) . ” (…)”;

WP qTranslate traduceri separate

function BCLANG ($Cuvant){ $BC["Link-uri rapide"] = “Quick links”; if ( ($BC[$Cuvant] != “”) && (qtrans_getLanguage()

Get page number

< ?php the_ID(); ?> // Works inside of the Loop function function_name() { global $post;

WordPress, Listează articole din categorie

echo “<h2>Servicii tehnice</h2>”; $theirNews = new WP_Query(); $theirNews->query(‘category_name=servicii&showposts=10′); while($theirNews->have_posts()) : $theirNews->the_post(); ?> <h3><a href=”<?php echo

Plesk & WordPress problem

Having problems with the new uploader system? Does it get “stuck” or otherwise not work

Show posts only for the selected category

<?php while (have_posts()) : the_post(); ?> <? if ((is_category()) && in_category($wp_query->get_queried_object_id())) { ?> <div class="post">