Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
You can alter your permalink structure individually when editing the post or create a custom post type and define your permalink structure in the settings. Custom Post Types
Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
Found a git repo that had the solution: https://github.com/hemal21/WordPress-CPT-Hierarchical-Taxonomy-Permalinks/blob/master/cpt-hierarchical-tax-permalinks.php I needed do a rewrite, Here is an example of working pretty permalink code: <?php /** * WordPress Custom Post Type and Hierarchical Taxonomy Permalinks * * Ever wanted to have custom taxonomy permalinks that reflect parent/child relation? * Then this is for you. Still in … Read more
Change the first character of slug to capital and try to run child pages and let me know if this works or as same it is
First of all thank you to @jdm2112 for such a quick response. I was able to serve a custom page by creating a page from inside the WordPress admin panel to get a permalink wordpress.live/blogs. After that I setup my page.php to loop through all the posts using the following code <?php get_header();?> <?php $wpdb … Read more
Fixed! Somehow the word blog had removed itself from /blog/%postname%/ in custom post structure, possibly on a recent permalinks flush..
added code to permalink (URL)
How can I set the permalink of an article / page equal to the permalink of an existing article / page?
When you visit the Permalinks page, the permalinks rules are being flushed. It also forces WordPress to reload them. For this reason, you see the issue go away after saving permalink settings. But after some time, it comes back once again . Try following these steps: Deactivate all the plugins. Then activate one by one. … Read more
ok have a working fix, I used an if else statement combined with is_home to change <article id=”post-<?php the_ID(); ?>” <?php post_class(get_field(‘custom_field_X’)); ?> to <?php if ( is_home()) post_class(get_field(‘custom_field_X’)); else post_class(get_field(‘custom_field_Y’)); ?>> which has removed the custom_field_x settings from the permalink pages fo the posts. maybe there is a more elegant solution out there but … Read more