silente08
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [CoverNews] Single post not fully translated in GermanYes, that worked, thanks! ??
Forum: Themes and Templates
In reply to: [Newsup] Logo does not link to home pageOh yes, you are absolutely right! Either I only tested on the front page or there was some glitch earlier when I changed the logo. In any case, it is working as expected now, so all good, thanks! ??
Forum: Fixing WordPress
In reply to: Backend corrupted after malware attackHm, it looks like completely deleting the .htaccess has solved the issue for now. I will go through some more steps to make sure this does not happen again!
Forum: Plugins
In reply to: [Custom Post Type UI] Add post type to Gutenberg Latest PostsSure, ideally the block will support custom posts at some point. But until then, isn’t there any function I can add to my child theme to add that one custom post type to latest posts? I am already using my_cptui_add_post_types_to_archives, but I can’t figure out how to write something similar for latest posts.
Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateYes, this does the magic! Really strange though that it worked before the update, I have definitely not changed the theme functions.php before. Thanks a lot!
Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateNot exactly, I will explain better. I have defined one custom post type, “buecher” (eg this one). These posts use the standard category taxonomy (I use no custom taxonomies). The example custom post I linked is in category “Sachbücher”. However, the standard category archive for “Sachbücher” is shown to be empty (category). This was not the case before the update to WP 5.6.
At the same time, with the Gutenberg block latest posts I can insert posts from a specific category into a page. In order for this to work with a custom post type, I need to add
post_type => array('post','buecher')
(this was already the case before the update). So when adding the same category as above into a page via the block, they are perfectly displayed (page). These two custom posts are thus clearly in the category, but somehow the standard category archive does not recognise them anymore and pretends to be empty.I have just checked the category, category-template and taxonomy files of the updated wp-includes, but there seem to be no relevant changes. Maybe I missed where exactly the post type is queried, but I am out of ideas by now.
Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateI am trying to figure out what could have changed with the WP update. It looks like the category pages only show posts with the type post anymore, while before they did not distinguish. Regarding the “latest posts” block: yes, it is a Gutenberg block. For that one to work with custom posts, I had to explicitly add the line
post_type => array('post','buecher')
(already before the update), so I am guessing something similar would need to be done for the category pages now.Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateI hoped that by simply creating new categories and adding them to the custom posts would solve it, but no, even newly created categories won’t show any custom posts, although they can be added to the posts and also be accessed via the “latest posts” block. Really don’t know what the issue is. I feel like I’ll have to go back to my backup in this case …
Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateActually, not completely. Now all the posts are visible again, but the categories that contain the custom posts (not the ones containing “normal” posts) still cannot be displayed (while they are still shown for each post). Editing the categories didn’t help.
Forum: Plugins
In reply to: [Custom Post Type UI] Custom posts not visible anymore after WP updateLooks like refreshing the permalinks was indeed the solution, thanks a lot! ??