the_content() Returns post content when I want page content

When you configure your blog (posts) page under Settings > Reading, that page becomes nothing more than a placeholder – in other words, you won’t be able to grab it’s title/content within index.php without a little trickery: if ( $page_id = get_option( ‘page_for_posts’ ) ) { echo get_the_title( $page_id ); // the_content() doesn’t accept a … Read more

Retrive images from the_content()

There are essentially three criteria here: do images belong to the site (are WP attachments) are images attached to this post are images used in this post This has side effects, like: images used in post are not necessarily attachments post’s attachments aren’t necessarily used in that post So the only reliable way to produce … Read more

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