ericebdy
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: path for taxonomy.php from adminok i found it!
this is :
$ id = get_term_by (“slug”, $ myslug, ‘product_cat”);
have a good dayForum: Developing with WordPress
In reply to: path for taxonomy.php from adminThanks for your reply, it got me thinking, and I rewrote my file differently and now it works.
But I have a new question how to get the id of a term with its name, I’m trying to use the get the term function:
$ id = get_term_by ($ myslug, $ myterm-name, ‘product_cat’);
but I get nothing:
var_dump ($ id) = false
Thank youForum: Developing with WordPress
In reply to: wp_create_category() in frontHello, thank you for your answers.
for now I am on a local server, and I am trying as an admin.
I’m just starting out in wordpress and php, I did well as bcworkz explains (nonce, user rights and Data are OK), but for now it doesn’t always work the same error :
Fatal error: Uncaught Error: Call to undefined function wp_create_category()hi
For now it is on a local server, I put it online in the day
Thank you
I forgot to say, that when I resize the page, the anchors work with the hamburger menu
thx
Eric