sebinfernandez
Forum Replies Created
-
Hi
Thanks for your reply.I shared this threads URL to your support team.one update
I debugged it, and found out the reason. The issue is thrown by a conflict b/w User Registration plugin’s js jquery.validate.min.js file and my themes jquery file. Link to the jQuery file is this
When i remove the jQuery file the registration works perfectly. But in my case i cannot remove the jQuery file. Is there any method to solve this?
Waiting for you response..Also found some bug with the show password button.
- This reply was modified 5 years, 4 months ago by sebinfernandez.
Hi
@aterego ,thanks for your advice, it worked perfectly,however i don’t know it will affect on my ACF fields.Do you know any other suggestion without modifying both the plugins code(if there is any solution i can give first priority to that).Please check this Check this out
Forum: Fixing WordPress
In reply to: Permalink Settings, cannot return 404 correctlyForum: Developing with WordPress
In reply to: Multiple orderby on queryHI
If you wish to order by two different pieces of postmeta (for example, City first and State second), you need to combine and link your meta query to your orderby array using ‘named meta queries’. See the example below:$q = new WP_Query( array(
‘meta_query’ => array(
‘relation’ => ‘AND’,
‘state_clause’ => array(
‘key’ => ‘state’,
‘value’ => ‘Wisconsin’,
),
‘city_clause’ => array(
‘key’ => ‘city’,
‘compare’ => ‘EXISTS’,
),
),
‘orderby’ => array(
‘city_clause’ => ‘ASC’,
‘state_clause’ => ‘DESC’,
),
) );Ref : Ref and ctrl+f5 ‘orderby’ with multiple ‘meta_key’s
- This reply was modified 5 years, 6 months ago by sebinfernandez.
Forum: Fixing WordPress
In reply to: WordPress always points to localhost databaseHi
Please change the following line in wp-config file
define( ‘DB_HOST’, ‘localhost’ );
to
define( ‘DB_HOST’, ‘MySQL installed computer name’ );and also try to access with URL like http://HostedComputerName instead of http://localhost
I hope this will works for you : )
- This reply was modified 5 years, 6 months ago by sebinfernandez.
Forum: Everything else WordPress
In reply to: Is this possible in WordPress/Woocommerce?Hi all
I am also facing same situation. I know an idea but don’t know it is good or bad.
There is an id for select attribute drop down ( in case attribute shown as drop down option ) in single product page . Example for color attribute the id should be pa_ + attribute slug in my case pa_color. So what i am thinking is, if i should pass this attribute and its value as a query string like https://example.com/product/product-name/?pa_color=red , based on this $_GET[‘pa_color’] i think we can set selected HTML5 attribute in the option tag based on the condition like
if( currentOptionValue == $_GET[‘pa_color’] ):
<option …. selected=”true”>…</option>
else:
<option>…</option>
enif;Is the above method is correct?. I didn’t check there is any technical issue will cause based on the above solution.Or there is any other simple methods to do this?
Please help
Thanks in advance
To redirect base on user role check the following filter example.
function my_login_redirect( $url, $request, $user ){ if( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) { /*check your roles,customize according to you conditions*/ if( $user->has_cap( 'administrator') or $user->has_cap( 'author')) { $url = admin_url(); } else { $url = home_url('/custom-page /'); } } return $url; } add_filter('login_redirect', 'my_login_redirect', 10, 3 );for further information please refer Please go through this link
I hope this will help you 🙂
- This reply was modified 5 years, 6 months ago by sebinfernandez.
- This reply was modified 5 years, 6 months ago by sebinfernandez.
- This reply was modified 5 years, 6 months ago by bcworkz. Reason: code fixed
Forum: Plugins
In reply to: [Max Mega Menu] Notice: Undefined property: stdClass::$thumbnail_idHi Tom,
Thankyou for your response.However I solved that issue. Sorry for inconvenience,it was my fault i didn’t looked carefully where the error thrown from.
Can please tell me the hooks that save data from custom fields in the edit profile page?.Custom fields like image upload(multiple files) etc. and also how to show them back to the edit profile page after saving those fields?
Thanks!
- This reply was modified 5 years, 6 months ago by sebinfernandez.