From fe463093bc6c8645fb49864b095fc3f63dec5f49 Mon Sep 17 00:00:00 2001 From: Shane Date: Sat, 3 May 2025 17:51:24 +1000 Subject: [PATCH] try --- foodie_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foodie_utils.py b/foodie_utils.py index d36037b..f236d78 100644 --- a/foodie_utils.py +++ b/foodie_utils.py @@ -517,7 +517,7 @@ def post_to_wp( """ try: # Get WordPress credentials from environment - wp_url = "https://insiderfoodie.com" + wp_url = "https://insiderfoodie.com/xmlrpc.php" # Updated XML-RPC endpoint wp_username = author["username"] wp_password = os.getenv(f"{wp_username.upper()}_PASSWORD") @@ -577,7 +577,7 @@ def post_to_wp( if result and 'id' in result: post_id = result['id'] - post_url = f"{wp_url}/?p={post_id}" + post_url = f"https://insiderfoodie.com/?p={post_id}" logger.info(f"Successfully posted to WordPress (ID: {post_id})") return post_id, post_url