Permissions question [closed]

Maybe I’ve misunderstood something, but I’m pretty sure WordPress can do this without any plugins. Just set User A as Author, and User B as Editor or Administrator. PS. See Capability vs Role Table: http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table

Hook with jquery script is not working in wp-admin [closed]

The blank page is a PHP fatal error. You need to either escape the single quotes or change them to double quotes. $(e.target).prop(‘checked’, false); -> $(e.target).prop(“checked”, false); You can enable debugging in WordPress to see the PHP errors by setting WP_DEBUG to true in you wp-config.php file. You can also look in your server/PHP error … Read more

wordpress theme: on site seo [closed]

Download either All in One SEO Pack, or WordPress SEO. These should help you create more traffic. You will need to take the time to go post by post, page by page, and add descriptions, titles, keywords, etc. for better SEO rankings.

PHP Syntax getting PHP terms

I prefer to use get_the_ID() for things like that, which will return the ID of the current page/post. $mjrelatedproducts = get_brands( get_the_ID() )->slug; That should return the slug of the current page/post.

Hide Pages WooCommerce [closed]

You can do this by using 1) is_shop fx 2) template_redirect action hook 3) wp_safe_redirect fx add_action(‘template_redirect’,’ravs_shop_for_login_user’); function ravs_shop_for_login_user(){ //check user in shop page and not login if( is_shop() && ! is_user_logged_in() ) wp_safe_redirect( home_url() );// enter your url here where you want to redirect page if user on shop page and not registered } … Read more

How can I list only Subcategories in Woocommerce

You can try this. $args = array( ‘parent’ => 100, // id of the direct parent ‘hide_empty’ => false, ); $cats = get_terms( ‘product_cat’, $args ); foreach( $cats as $cat ) { // do your loop stuff here } Here is more information on this function and additional arguments you can use.

Can WordPress used as a CMS? [closed]

WordPress IS a CMS. It hasn’t been just a blogging platform for a long time. And no, it’s not slow if you don’t make it slow. WP out of the box is really fast, but people slow it down with poorly-written plugins and themes. You can do whatever you want with WordPress, as it has … Read more

How to use same email for multiple users? [duplicate]

As you assumed – the solution is pretty easy. First create a file(for instance) skip-email-check.php and inside it put the code from the other answer: add_filter(‘wpmu_validate_user_signup’, ‘skip_email_exist’); function skip_email_exist($result){ if(isset($result[‘errors’]->errors[‘user_email’]) && ($key = array_search(__(‘Sorry, that email address is already used!’), $result[‘errors’]->errors[‘user_email’])) !== false) { unset($result[‘errors’]->errors[‘user_email’][$key]); if (empty($result[‘errors’]->errors[‘user_email’])) unset($result[‘errors’]->errors[‘user_email’]); } define( ‘WP_IMPORTING’, ‘SKIP_EMAIL_EXIST’ ); return $result; … Read more