WP Post Context

Query items from wp_posts table and transform their values into a catalog source for Amazon.

When to use?

If you have post values that you would like to turn into an entity source. For example, if you have a custom post type that you would like to be able to use as an entity.

How to use?

  1. Under Entity name, enter the name of the entity you wish to "override" with the catalog values. Make sure you create a dummy entity with the same name in the entity editor beforehand. You do not have to add any values to it, since it will be replaced with the catalog.
  2. Filter the posts you want by adding Query parameters. A simple example being, if you wanted to get all the posts of any given type, you could use post_type: <your_post_type_here> and post_status: any.
  3. Final value is what you will turn each post into. After the posts have been queried and found, each post will be iterated over and you need to provide an expression that will turn each post into a SINGLE STRING VALUE. You can use WP functions such as get_the_title(), get_the_meta() and so on.