my website didn’t show the defult right sidebars
my website didn’t show the defult right sidebars
my website didn’t show the defult right sidebars
How can I merge a several related posts into one post?
WordPress Ajax load doesn’t work
I noticed your filter function is using get_query_var() which automatically parses URL/form parameters from the superglobals $_GET and $_POST, but only if the parameters are registered as public query vars. Were you aware of that, and have you registered the orderby2 parameter as a public query var? Because in my case (WordPress v6.1.1), the 2nd … Read more
To set the default template for a specific category of posts in WordPress, you can modify your code to check the categories of the post before setting the default template. Here is an example of how you can do this: function default_temp() { global $post; if ( ‘post’ == $post->post_type && 0 != count( get_page_templates( … Read more
Well, the AI didn’t do THAT bad of a job. But either you or the AI didn’t deliver code for the functions get_users_who_commented or get_number_of_comments_by_user which are not wordpress functions but have to be coded seperatly. Also, i would change the code a bit to use wordpress-internal functions like the comment query: function my_custom_shortcode( $atts … Read more
Display content from specific category
Making a private post visitable by link?
Automatically select category based on user role
You made 2 small errors. First of all: Shortcode-Functions receive a maximum of 2 parameters: $attributes and $content. $attributes is an array of all the attributes within the shortcode, like [shortcode post_id=123] the attribute post_id will end up in the $attributes array as $attributes[‘post_id’]. $content has the content between the opening and the closing shortcode … Read more