current post index within content.php
current post index within content.php
Tracking changes in admin-page so user gets warning when leaving the page
In this specific case it is better to have some handling of bad configuration than trying to prevent it from happening, as there are just too many possible ways in which it can happen without coming from the post edit page. Short list that comes to my mind right now quick edit from the post … Read more
Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
page menu entry for custom post type
You have to set “hierarchical” => true in order to get %category% and %subcategory% to display: “rewrite” => array( “slug” => “producten”, “with_front” => false, “hierarchical” => true ), Don’t forget to flush permalink settings by opening settings → permalinks and save. More info: WordPress Codex: Function Reference/register post type
How could there be a page 2 of the archives if you’re not allowing archives? This is also why it’s working that you can have an actual page at that url and add a loop…you’re adding that loop. If you change your url “announcements” to something else you’ll still see the first page of your … Read more
There are many ways you can achieve this and it’s pretty hard to say which one will be the best. First part would be to register your CPTs – this will be easy, I guess. So let’s say you already have your CPTs registered and these CPTs are called fruit and vegetable. So the only … Read more
current post index within content.php
Alright after some more intensive research and A LOT of errors i got a fix which seems legit. First of all i keep the rewrite rule in my custom post-type but did change the name: ‘rewrite’ => array( ‘slug’ => ‘/%designer%/’, ), Then i need to point the %designer% to the correct field (which was … Read more
How to create custom post type with custom taxonomy?