remove “index.php” from permalinks

I have been trying to find a solution. but I can’t.. my links are all domain.com/index.php/post_name/ I really want to remove /index.php I have searched and found some… saying I need to add these.. but it’s not working .. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f … Read more

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I’m using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. However, I need to use that avatar in different ways and different places and for that I need the local avatar image … Read more

Remove slug from custom post type post URLs

It seems that all web resources based on the subject of removing a custom post type slug ie yourdomain.com/CPT-SLUG/post-name are now very outdated solutions often referencing pre WP version 3.5 installs. A common one is to: ‘rewrite’ => array( ‘slug’ => false, ‘with_front’ => false ), within your register_post_type function. This no longer works and … Read more

What’s the difference between home_url() and site_url()

My understanding is that site_url() returns the location where the WordPress core files are. If my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But then how does home_url() differ? For me, home_url() returns the same thing: http://example.com/blog If that’s correct, then can I get WordPress to return http://example.com/ ? You are asking two … Read more