How can I incldue a “private” post type in a loop for public users?

Figured it out, it was simpler than I expected. /** * Include catalog posts in archives, even though they’re not “public” * * @param WP_Query $query * @return WP_Query */ function wpse415668_catalog_posts_in_archives(WP_Query $query): WP_Query { if (! $query->is_admin() && $query->is_main_query() && $query->is_tax(“catalog_category”)) { $query->set(“post_type”, “catalog”); } return $query; } add_filter(“pre_get_posts”, “wpse415668_catalog_posts_in_archives”);

How can I make my blog private? [closed]

I finally found something (I think): Network Privacy is currently in version 0.1.4 but looks just about right. When installed, there’s a new Privacy setting screen where I can choose, e.g. I would like my site to be visible only to Site contributors. Given that new users automatically get the permission level Subscribers when they … Read more

Exceeded the virtual memory limit

It is impossible to guess how is memory spent in your site. In context of WordPress it will simply obey PHP memory limit and will crash upon reaching it. Your description sounds more like the total of server memory, which isn’t just WP, but everything on server (including web server software, database software, and so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)