Permalinks not working (.htaccess is writable)

Have you tried something simple to ensure it is actually rewriting? Something like… RewriteEngine On RewriteRule ^.*$ verified.php Then create a verified.php page… <?php print ‘mod_rewrite works!’; ?> Now you should hit that page no matter where you try to go on the site. If you don’t mod_rewrite isn’t working. You can also turn on … Read more

Remove taxonomy slug when not assigning taxonomy with custom post types

The post_type_link filter is responsible for modifying the permalinks that are output, but it’s not connected to resolving incoming requests for those permalinks. So you’ll need to modify your function to output the correct links, but also add a rewrite rule so WordPress knows what to do when those pages are requested. This is all … Read more

removed index.php now all pages 404

If you want to remove the index.php from your URL structure, then using this rewrite rule (assuming you’re using Apache, from your question) in your .htaccess will help. # BEGIN WordPress RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress Then, flush permalinks by either using WP-CLI … Read more

WordPress Permalinks %postname% for RSS2 Feed URL

First of all there isn’t any default way of doing this as far as I’m aware. If you use the ‘Rewrite rule inspector plugin‘ you’ll see that there isn’t any default rule that combines the category, the date and the feed as parameters. An example date rule is ([0-9]{4})/([0-9]{1,2})/?$ index.php?year=$matches[1]&monthnum=$matches[2] and an example category rule … Read more

Custom Taxonomy List links being re-written

After taking @Milo ‘s comments into consideration, I removed the s= argument from the link, and it worked! This is my final code: function job_listing_taxonomy_list( $taxonomy,$hide ) { $args = array(‘order’=>’ASC’,’hide_empty’=>$hide); $terms = get_terms( $taxonomy, $args ); if ( $terms ) { printf( ‘<ul name=”%s”>’, esc_attr( $taxonomy ) ); foreach ( $terms as $term ) … Read more