Problem in replacing the_content with the_excerpt()

Are you sure you have replaced it in the correct template file? I found a useful way to tell by adding this to the functions.php file: <?php add_action( ‘wp_head’, ‘adminbar_print_template’ ); function adminbar_print_template() { global $template, $current_user, $wp_admin_bar; get_currentuserinfo(); /* If you have more than one user deny. Be sure to use your user ID! … Read more

Adding if statement into the_content()

I don’t know exactly how your code works BUT I do know this. If you only have one loop on the page-template you could use query_posts(); but if you have more than 1 loop it will screw up the code, even if you reset it. I would recommend you to use WP_Query like this: <?php … Read more

Fixed height of the_content()

If you run a wp_kses() on the_excerpt() (through a filter) you can whitelist specific HTML tags and such. In your case, the code would probably look something like this: if( is_page( ‘your_page’ ) ) { add_filter( ‘the_excerpt’, ‘wpse44363_filter_the_excerpt’ ); } function wpse44363_filter_the_excerpt( $excerpt ) { // this allows no html, you can allow only links … Read more

Paginate the_content automatically? [duplicate]

Use the <!–nextpage–> tag http://codex.wordpress.org/Write_Post_SubPanel#Quicktags can be used any number of times in a post, and each insert will “break” and paginate the post at that location. Hyperlinks to the paginated sections of the post are then generated in combination with the wp_link_pages() or link_pages() template tag.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)