alexborras
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: A curiosity with wp_update_post() functionIt’s not very clean, but it works
wp_update_post( $my_post ); $tags = wp_get_post_tags($row->ID); foreach ( $tags as $tag ){ wp_delete_object_term_relationships( $row->ID, $tag->name ); $tag_id_lang = pll_get_term( $tag->term_id , "es" ); $tags_lang = array( $tag_id_lang ); wp_set_post_terms($row->ID, $tags_lang, 'post_tag', true ); }
Forum: Developing with WordPress
In reply to: A curiosity with wp_update_post() functionThanks, but still not working. I have tried:
- wp_insert_post( $my_post )
- wp_insert_post( $my_post ) AND wp_set_post_terms ($row->ID);
- wp_insert_post( $my_post ) AND wp_set_post_terms( $row->ID,”, ‘post_tag’, true );
and neither update the tags.
The category continues to update but the post tags remain those of the previous language. So we still don’t know what exactly the “Update” button does.
I’ve already seen it on Roadmap
Forum: Plugins
In reply to: [Redirection] Recurring problem with Matched Target and Unmatched TargetSolved. The problem was that by default I had URL and server. Putting only URL works perfect. Thanks
Forum: Plugins
In reply to: [Redirection] Recurring problem with Matched Target and Unmatched Targethttps://www.ionos.es/ is the hosting company
So, if they are on the same server, it is necessary to fill in the two fields: Matched and Unmatched?
Forum: Plugins
In reply to: [Redirection] Recurring problem with Matched Target and Unmatched TargetIt’s possible. They are in IONOS (before 1&1). In the same customer account but in two different contracts. I’m not sure if it’s the same server.
Forum: Plugins
In reply to: [Redirection] Recurring problem with Matched Target and Unmatched TargetIf I enter the URL https://www.ineet.net/zinepress it gives error 404 in ineet.net and it does not revert to https://www.alexborras.com/zinepress
But if I put https://www.alexborras.com/zinepress in “Unmatched Target” and I keep the changes, then it works.
Forum: Plugins
In reply to: [Redirection] Recurring problem with Matched Target and Unmatched TargetForum: Hacks
In reply to: Problem with the loopOK, thanks