danncoba
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] wp_insert_term with polylangThank you Chouby but i knew that it doesn’t return just term_id…
Now i’m getting this error
Call to a member function set_term_language() on a non-object in line…….
It’s been painfull this for me…
I have about 25000 terms that i need to enter and i can’t do it programatically
Please advise.
I did globalize $polylangForum: Themes and Templates
In reply to: HTTP Post problemOk one more thing to add.
Does WP_Query have optimal number of meta_queries and tax_queries that can support with no problem……
I exactly have 17 meta_queries that have AND relation….. Couple of us looked at the code and we don’t see any logical or other problem that could cause this…
The only thing that i see that could be wrong is the WP_Query constrains or something like that….
But please advise so i can fix this…..
Thanks in advanceForum: Plugins
In reply to: [Polylang] wp_insert_term with polylangThanks for the advice but it didn’t work…
Here is the code that i’m using
$term = wp_insert_term(
‘aaaaas’, // the term
‘custom_tax’, // the taxonomy
array(
‘description’=> ‘Just to see the language at its best’,
‘slug’ => ‘custom-tax’,
)
);
global $polylang;
$polylang->model->set_term_language($term->term_id, ‘en’);wp_insert_term returns the term_id so acording to you’r advice it should be enought but it isn’t