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