Codex Topic: WordPress
-
WordPress File Permission Problem Bypass FTP Update Theme Plugins
WordPress File Permission Problem Bypass FTP Update Theme Plugins add this line to the wp-config.php file define(‘FS_METHOD’,’direct’); some people say its not safe. well it depends. if you have multiple users using the dashboard or your wordpress site is open to registers dont use this method. just fix your apache writing problem or…
-
WordPress Cloudflare Redirect SSL Problem Fix Solution
Add this to your wp-config.php. That’s it… $_SERVER[‘HTTPS’] = ‘on’; There is more ways to fix Cloudflare ssl problem but this is the fastest and I think best one. You don’t need to have a plugin and most of the time people can not access their wp-admin anyway. So cheers…
-
WordPress WP Query Loop , WP_Query
WP_Query is the advanced way to get posts, filter posts, and write custom queries. You can even write a SQL Query in WP_Query request. Usually query_posts() function enough to filter posts most of the time but sometimes you need to write a more advanced filter that’s where WP_Query comes in. It works almost same as…
-
WordPress Query Loop , Query_Posts
Another way to get posts is using the query_posts() function. You can filter the posts with any type, category, author, tag and anything really. It is a bit more advance way to filter and get posts. lets say you have a movie post type and you want to get Bruce Campbell and Chuck Norris movies.…
-
WordPress Default Loop, The Loop
WordPress Loop is the most basic way to get the latest posts. We can use this loop on both index.php and single.php or page.php or archive.php There are so many ways to write a loop. Example Loop 1 <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); // // Post Content…