adding two json fields to post_content

this is the solution: ‘post_content’ => $product_data[‘note’] . ‘<br>’. $product_data[‘note2′], this concatenates strings ‘note’ and ‘note2’. Thanks for the hints.

I can’t get those posts from the wordpress to ionic

The API endpoint for the post type ‘accomodation’ is /wp-json/wp/v2/posts?type=accomodation Custom Post Types however are not shown in the API by default. You can enable this per Post Type by adding show_in_rest’ => true, to the register_post_type arguments. Documentation can be found here

Get the name of the post type

My sleuthing methods go like this: Look for an XML sitemap. If the site uses a common plugin like Yoast SEO and generates sitemaps, often the URLs will give you enough clues to figure out what the post types are named. Unfortunately, it doesn’t appear this site is using any XML sitemap plugins. Look for … Read more

Add custom schema to post

I’ve used a custom field and added the data above which works well but isn’t user friendly. Use Custom Post Types and add Meta Boxes to make it user friendly. Here’s a basic example of adding a custom post type: function create_post_type() { register_post_type( ‘car’, array( ‘labels’ => array( ‘name’ => __( ‘Cars’ ), ‘singular_name’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)