rocio480
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: wp_query and a key with mathematical operationsThank you. It works perfectly.
I have troubles now trying to order the results.
Could you help me?
I have this var:
$price_with_discount = (price – ((discount/100)*price ); ->The price of the car with a discount.
I need to get the car’s price with a commission:
$commission=1.33/100;
$fee = (($price_with_discount*$commission)+$price_with_discount)/120;
The idea is: select a car order by $fee.
I tried:
$args_min = array(
‘numberposts’ => 1,
‘post_type’ => ‘ficha_vehiculo’,
‘post_status’ => ‘publish’,
‘orderby’ => $fee,
‘order’=>’ASC’,
‘meta_key’=>’price’
);
Can I do that?
Also I ask you, should I select “meta_key”=’price’. I don’t know if this is also ok…
RegardsForum: Plugins
In reply to: [Language Redirect] redirected you too many timesI can’t create a rute for /es/
Thanks for your support.
I look for another plugin solution.Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesWell, the problem persists
With default: /
and mapping: en=/en/
I get “redirected you too many times” error
It seems to be no solution to this problem.
Moreover, I can’t access to hosting.com/wp-admin. Now, I always get a redirect to “english” rute.Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesSorry I dont’t understand you.
My web es hosting.com and is a wordpress in spanish.
When browser is english, I need to redirect to another location, por example /en/ or another url. /en/ is an example. If I write en=/something/ redirection doens’t works.
You say: write in default /en/
So I need to crate a mapping for spanish. But spanish is the home, the rute is “hosting.es/”.
How can I write the mapping?Forum: Plugins
In reply to: [Language Redirect] redirected you too many timeses=/es/ doesn’t exist in this wordpress.
Should I create this rute using another plugin?
default: /en/
mapping: es=/es/
?Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesIf I write in default /en/, what do I write in mapping? es=/ ??
Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesWell, I have tried a lot of things.
If I write in default:/
And then mapping: en=/en/
I get error “redirected you too many times”
If I write -> en=/something/ I get same errorForum: Plugins
In reply to: [Language Redirect] redirected you too many timesNo.
I have 2 independent wordpress, one in the root and another in one folder called “en”. I have 2 databases.
The plugin is instaled only in one of them, in de root wordpress.
Can I make a redirect using this plugin to any URL, for example, https://hosting.com/en/ ??
I need this:
Default works like this: https://hosting.com
If english is detected-> https://hosting.com/en/Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesNo, the plugin is only instaled on the root.
The folder /en/, that contains another wp intalation, doesn’t have this plugin.Forum: Plugins
In reply to: [Language Redirect] redirected you too many timesit’s a rute than contains another independiente instalation of wordpress.