Find wordpress post by title
From UBot Studio
$find wordpress post title is a function that retrieves a specific post or page or custom post type from a WordPress site using its title.
Parameters
Post Title: The title of the post or page you want to retrieve.
Return Value
This function returns a yaml object which contains the entire post, including its title and contents.
Example
ui console view connect to wordpress("https://yourwordpresssite.com", "username", "password") create wordpress post("My New Blog Post", "This is the content of my new blog post.", "public", "post", #my post id) log($find wordpress post title("My New Blog Post"))
Remember to replace "https://yourwordpresssite.com", "username", and "password" with your WordPress site's URL, your username, and your password, respectively. Replace "My New Blog Post" and "This is the content of my new blog post." with your own title and content.
This script creates a new public post on your WordPress website, saves its ID, and then retrieves and logs the post using its title.