Use code snippet to create a simple WordPress shortcode. I have created a sample shortcode prefix-portfolio with 2 attributes. Before use change: #Before use change: Change the Prefix with your own unique prefix. Change the prefix with your own unique prefix. How to use? #How to use? Create a new page and add shortcode. Open the
A valid way to register the Google fonts in the theme or plugin.
Add post meta in post (custom post type) endpoint with Rest API. Todo: #Todo: Change post-type with your post type slug. Change prefix-meta-key with your post meta key which you want to include in Rest API Response. Output: #Output: Visit https://<mysite>/wp-json/wp/v2/<post-type>/ it show the stored data from meta key prefix-meta-key in the Rest API response. Code: #Code: