Fix: The WordPress REST API

The best way to check is to visit this URL: https://yoursite.com/wp-json. If you see some information which seems related to your WordPress REST API, it works. If you see something, it means that, at least, your WordPress REST API is enabled. Otherwise, that’s not working, and you will need to understand why. Enable Permalinks Visit your Settings > Permalinks. … Read more

How to Increase the Max Upload Size in WordPress

10 Ways to Increase the Max Upload File Size in WordPress There are many ways you can fix the WordPress maximum upload size issue. We’ll start with the easiest ones first, and then we’ll move on to the intermediate-level tutorials. Contact Your Hosting Provider for Help Increase the Max Upload File Size in WordPress Multisite … Read more

Using WordPress as a Headless CMS

A Headless CMS Defined In the simplest of terms, a headless CMS is one that has no front end. As such, it includes just the API and the back end that is required to store and manage content, organize data and handle the workflow. There’s no front end display of the said content. Naturally, this … Read more

Display Posts – Pagination

Display Posts is the simplest way to query and display content in WordPress. This plugin extends Display Posts by letting you paginate the results. You can use all of the Display Posts parameters to customize the query. Paginated Listing [display-posts pagination=”true”]

Page-list

SHORTCODES: [pagelist[ – hierarchical tree of all pages on site (useful to show sitemap of the site); [subpages[ – hierarchical tree of subpages to the current page; [siblings[ – hierarchical tree of sibling pages to the current page; [pagelist_ext[ – list of pages with featured image and with excerpt; EXAMPLES WITH ADITIONAL PARAMETERS: [pagelist child_of=”4″ depth=”2″ exclude=”6,7,8″[ [pagelist_ext child_of=”4″ … Read more

Display Posts

Easy lists, grids, navigation, and more Display Posts allows you easily list content from all across your website. Start by adding this shortcode in the content editor to display a list of your most recent posts: [display-posts] Filter by Category To only show posts within a certain category, use the category parameter: [display-posts category=”news”] Display … Read more

How to Create a Global Section in Elementor

Step by Step creation of global sections Create the section/inner sections and columns, add widgets/content/design Save the section as a template Place a template widget (Pro Widget) on the pages you want to show the template Edit the original template via WordPress Dashboard (Templates) Check the pages that have the template added and see if … Read more

is_archive()

Determines whether the query is for an existing archive page. Archive pages include category, tag, author, date, custom post type, and custom taxonomy based archives. For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook. See also is_category() is_tag() is_author() is_date() is_post_type_archive() is_tax()

How to Add Categories to a Custom Post Type in WordPress

To display your custom post types on the same category page as your default posts, you need to add this code into your theme’s functions.php or a site-specific plugin. add_filter(‘pre_get_posts’, ‘query_post_type’); function query_post_type($query) {   if( is_category() ) {     $post_type = get_query_var(‘post_type’);     if($post_type)         $post_type = $post_type;     else         $post_type = array(‘nav_menu_item’, ‘post’, ‘movies’); // don’t forget nav_menu_item … Read more