How to hide protected posts from archive?
Im trying to hide protected posts in WP from loop:
Im trying to hide protected posts in WP from loop:
im just developing a web page with the gutenbiz theme and im changing a lot of the features through the elementor webpage builder, i have my blog page set as a blog but the post im editing them on the elementor and then im publishing them,the problem now its that i cannot access this post … Read more
I have a custom post type “movie” with a taxonomy “period”. The “period” taxonomy has two terms: “current” and “past”.
And you’re then assigning this array as the query_vars. Now the query_vars is a pretty large object. And you’re basically overwriting the data in there and just adding your custom ones. This means that you ‘unset’ everything that is added per default.
I have the following code in my theme’s archive.php:
How do you display the archives of a Custom Post Type by Year & Month?
I recently asked this question Custom post types – Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain:
I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn’t clear to me, how can I get this working?
I noticed that WP 3.1 supposedly has ‘new CMS capabilities like archive pages for custom content types‘, however, I can’t see that implemented yet?
this question is strongly related to this question where I already got a working answer.