wpfreelancers
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Edit with Pagelayer not workingDid you check browser console. If it has any resource not loading errors?
Forum: Fixing WordPress
In reply to: Problem with quanity box.Just noticed that element is already set to hidden. Are you seeing it any specific screen size?
Try the code mentioned below in your functions.phpremove_action( 'woocommerce_after_add_to_cart_quantity', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 );
Forum: Fixing WordPress
In reply to: Problem with quanity box.Please share screenshot. I can’t reproduce the bug.
Forum: Fixing WordPress
In reply to: Problem with quanity box.Looks like a css related bug. Adding this line within customizer custom css section will solve your issue.
You customizer: https://yoursite.com/wp-admin/customize.php
.woocommerce div.product.elementor .woocommerce-variation-add-to-cart .quantity input {height: auto;}
In above function replace ‘manage_options’ to ‘edit_pages’
This way editor will be able to see the all posts, while authors will see only their own.
Hey! I just digged into members plugin code for you. Guess we can modify content via custom function. Hope this will help you. Paste it in functions.php within your active theme. Let me know if it works.
function member_errormsg_callback( $org_message ) { $dest_url = 'https://google.com'; //or whatever url you want return '<script type="text/javascript">window.location.replace("'.$dest_url.'");</script>'; } add_filter( 'members_post_error_message', 'member_errormsg_callback' );
No. You’d need to save restriction flag in custom meta field and then check that against user roles.
Check if this plugins helps you: https://www.ads-software.com/plugins/members/
- This reply was modified 2 years, 1 month ago by wpfreelancers.
There are plugins that allow to hide/assign products for certain user roles, but not per SKU.
You’d need a custom function to achieve the required result.
p.s. I can code the function for you.
- This reply was modified 2 years, 1 month ago by wpfreelancers.
function
limit_posts_current_author
($query) {????????global $pagenow;
????if( 'edit.php'!= $pagenow || !$query->is_admin )
????????return $query;
????if( !current_user_can('manage_options') ) {
???????global $user_ID;
???????$query->set('author', $user_ID);
????}
?????return $query;
}
add_filter('pre_get_posts','limit_posts_current_author');
Try this function. Place in functions.php. It will show all posts to admins but for others it will limit query to author posts only.
Let me know if it works.
Forum: Fixing WordPress
In reply to: WordPress category problemHave you edited wp query through function somewhere? if yes then that may be breaking the category query.
Do you
To diagnose the issue properly print the query request like: $wp_query->request; and see whats its quiring for at wallpapers page.btw you have more errors here: https://www.pixground.com/wallpapers/nature-wallpapers/
Forum: Fixing WordPress
In reply to: Linking to changing image fileA little javascript function at frontend will fetch latest image from backend allow your to replace images in real time.
What is the link of other page where its working perfeclty?
Forum: Developing with WordPress
In reply to: Restrict each user to view only certain postsYes you’d need a couple of custom functions done in functions.php. This file is found in current activated template.
Forum: Fixing WordPress
In reply to: WordPress displays my email address in social previewCheckout source of your html. Why its printing admin email in output. Have you added admin email in author cards?
Also use structured data schema to help social sites discover right content for social snippets.
Forum: Fixing WordPress
In reply to: Missing extension required by WordPressPlease check phpnfo(). if mysqlnd version under MysqlI Support head is missing you’d need to install it.
Forum: Fixing WordPress
In reply to: Missing extension required by WordPressContact your web hosting support they will handle this error.