Raba
  • Member for 4 years, 4 months
  • Last seen more than a week ago
  • Argentina
How to put an "include" inside a "do_shortcode"?
Accepted answer
5 votes

You won't be able to concatenate an include as it doesn't return a string. What you could do is store that include content in a variable, and then concatenate. ob_start(); include 'incMac.php'; $...

View answer
How can I have a common background color across multiple WordPress blocks?
Accepted answer
2 votes

You should group your blocks inside a container block that lets you choose its background color. I'm going to give you a couple of options, ordered by accessibility. Grouped Blocks For WordPress 5....

View answer
Stop theme's jQuery function from running
Accepted answer
2 votes

We need to know how the script is being enqueued, but if it's done right, you will be able to remove that .js file using wp_dequeue_script. How to correctly enqueue scripts function ...

View answer
How to detect that the save_post hook is calling the callback associated to the current edit post page only
Accepted answer
1 votes

Any function hooked to the save_post hook will run whenever you save a post. That is expected behaviour. You should use the hook save_post_{$post->post_type} to specify to which post type that ...

View answer
get_posts returns all posts
Accepted answer
1 votes

You are not using correctly the tax_queryargument. This argument takes array of tax query arguments arrays, to allow for complex queries with multiple taxonomies. You can learn more in the WP_Query ...

View answer
Deploying Local WordPress Site
1 votes

WordPress generate urls dynamically, using the data from the database. It is up to themes/plugins to use wordpress functionalities to generate urls instead of hardcoding them. Wordpress has a series ...

View answer
How to allow user to edit post in wordpress
1 votes

It would seem like the Basic Authentication Plugin is modifying the contributor user role, removing their edit_posts capability. As you need this plugin activated, I see a couple of options Make a new ...

View answer
How to show entries related to main category
0 votes

There are a couple of problems with that code Selecting the wrong terms First of all, you are storing tags instead of categories in the $terms variable. The taxonomy name for categories is category. ...

View answer