vajnabotond
Forum Replies Created
-
Forum: Plugins
In reply to: featured image does not showok, i found the solution:
<?php $args = array('post_parent' => $post->ID, 'post_type' => 'page', 'order' => 'asc'); echo $args; $echipa = new WP_Query( $args ); $c = 0; if( $echipa->have_posts() ) { while( $echipa->have_posts() ) { $echipa->the_post(); $c++; if( $c % 2 == 0 ) $style="echipa_color white"; else $style="echipa_color gray"; ?> <div <?php post_class($style);?>> <div class= "contentpart"> <?php the_post_thumbnail('feat'); ?> <div class= contentpart-text> <h1><?php the_title() ?></h1> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_content() ?> </div> </div><!-- .contentpart text --> </div><!-- .contentpart --> </div> <?php } } else { echo 'Oh ohm no pages!'; } ?>
Forum: Themes and Templates
In reply to: remove title tag from menu linksok, I Found the solution:
function my_menu_notitle( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'my_menu_notitle' ); add_filter( 'wp_page_menu', 'my_menu_notitle' ); add_filter( 'wp_list_categories', 'my_menu_notitle' );
Forum: Themes and Templates
In reply to: remove title tag from menu linksbut I have other sites with menus generated with wp_nav_menu() without the title attribute
Forum: Themes and Templates
In reply to: remove title tag from menu linksI do not using any themes, I trying to create one
Forum: Fixing WordPress
In reply to: security issuesI will ask them
I have the same problem, surely there must be some dependencies, functions etc… any idea?
Yess I fond it:
"title_li=".get_the_title(10)."
??
I think by replaceing $content = $page->post_content; with: $content = $page->post_excerpt; ??
Forum: Fixing WordPress
In reply to: remove search field from nav menusorry, I did.
Forum: Fixing WordPress
In reply to: remove search field from nav menusorry, that`s it
If I set no menu in the wp-admin panel at appearance – menus, the search field disappears, if I set my primary menu the search field reappears again.
Forum: Fixing WordPress
In reply to: different background colors in the loopok I fund it we must have $c not $a at the if ??
Forum: Fixing WordPress
In reply to: different background colors in the loop<div class="post-29 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-28 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-27 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-26 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-25 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-9 echipa type-echipa status-publish format-standard hentry echipa_color grey"> … </div><div class="post-24 echipa type-echipa status-publish format-standard hentry echipa_color grey">
Forum: Fixing WordPress
In reply to: different background colors in the loopthank you, but something is wrong, probably you have made some small mistakes bechouse your scrip does not work at all, I have a blank screen, but I have copied only the changes from your script, now it is better, but they are all grey
<?php $args = array('post_type' => 'echipa'); $echipa = new WP_Query( $args ); $c = 0; if( $echipa->have_posts() ) { while( $echipa->have_posts() ) { $echipa->the_post(); $c++; if( $a % 2 == 0 ) $style="echipa_color grey"; else $style="echipa_color white"; ?> <div <?php post_class($style);?>> <h1><?php the_title() ?></h1> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_content() ?> </div> </div> <?php } } else { echo 'Oh ohm no pages!'; } ?>
Forum: Fixing WordPress
In reply to: different background colors in the loopsorry, I am using a child theme for the Twenty Thirteen ??