Horje
Easily add one or more posts to any page using simple shortcodes. Wordpress Tutorial

Noted That:

  • To install correctly this posts-in-page.zip .
  • Fisrt Download the posts-in-page.zip to your computer
  • Extract/Open posts-in-page.zip to Your Computer.
  • Then, Find readme.txt file inside posts-in-page.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " posts-in-page.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " posts-in-page.zip "  Downloaded plugin from your computer, Where you downloaded posts-in-page.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Posts in Page " folder is added on left sidemenu. Now, Click on " Posts in Page " folder.

   Noted that: If you do not see " Posts in Page " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Posts in Page Configurtions and Settings or How to work " Posts in Page " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Posts in Page " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Posts in Page
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

You can install from within WordPress using the Plugin/Add New feature, or if you wish to manually install:

  1. Download the plugin.
  2. Upload the entire posts-in-page directory to your plugins folder
  3. Activate the plugin from the plugin page in your WordPress Dashboard
  4. Start embedding posts in whatever pages you like using shortcodes.

Shortcode Usage

To ‘pull’ posts into a page, you can:

  1. place a shortcode in the editor window of the page you’re editing (Classic Editor),
  2. place a shortcode in a shortcode block on the page you’re editing (Gutenberg Editor),
  3. modify a theme template file using the shortcode in a PHP function.

Using Shortcodes in the WordPress editor

  • [ic_add_posts] – Add all posts to a page (limit to what number posts in WordPress is set to), essentially adds blog “page” to page.
  • [ic_add_posts post_type='post_type'] – Show posts from a custom post type by specifying the post type slug (must give post type if not a standard post). Add multiple post types by separating with commas (ex. post_type='post_type1,post_type2' ).
  • [ic_add_posts showposts='5'] – Limit number of posts (or override default setting).
  • [ic_add_posts orderby='title' order='ASC'] – Order the post output using orderby – supports all WP orderby parameters . Order is optional, default is ‘DESC’.
  • [ic_add_posts ids='1,2,3'] – Show one or many posts by specifying the post ID(s) (specify all post types).
  • [ic_add_posts exclude_ids='4,5,6'] – Exclude specific post ID(s) from the query.
  • [ic_add_posts category='category-slug'] – Show posts within a specific category by category slug. Separate multiple categories with commas.
  • [ic_add_posts cats='2,13'] – Show posts within a specific category by category IDs. Separate multiple categories with commas.
  • [ic_add_posts exclude_category='category-slug'] – Exclude posts within specific category. Uses slugs, can list multiple category slugs separated by commas.
  • [ic_add_posts tag='tag-slug'] – Show posts using a specific tag. Like categories, it uses slugs, and can accommodate multiple tags separated by commas.
  • [ic_add_posts tax='taxonomy' term='term'] – Limit posts to those that exist in a taxonomy and have a specific term. Both are required for either one to work and you must specify custom post_types.
  • [ic_add_posts post_format='post-format-status'] – Select post formats. Use ‘post-format-‘ followed by the format type (chat, aside, video, etc.). Use comma to separate post formats. To pull all posts with the quotes format, you’d use [ic_add_posts post_format='post-format-quote'] .
  • [ic_add_posts ignore_sticky_posts='no'] – Show sticky posts too (they’re ignored by default).
  • [ic_add_posts paginate='yes'] – Use pagination links (off by default).
  • [ic_add_posts label_next='Next' label_previous='Previous'] – Customize ‘Next’ and ‘Previous’ labels used by pagination.
  • [ic_add_posts post_status='private'] – Show posts with the specified status. By default it shows only posts with ‘publish’ status. To select multiple statuses, separate them with commas like so: post_status='private,publish' .
  • [ic_add_posts more_tag='Read more'] – Set the link text for read more links shown after an excerpt.
  • [ic_add_posts date='today-1'] – Choose the relative date of included posts. Supports formatting like date='today-1' (today minus 1 day), date='week-2' (today minus 2 weeks), date='month-1' (today minus 1 month), date='year-1' (today minus 1 year).
  • [ic_add_posts from_date='15-01-2016' to_date='31-12-2016'] – Shows posts published within a specified absolute date range.
  • [ic_add_posts offset='3'] – Displays posts after the offset. An offset='3' will show all posts from the 4th one back.
  • [ic_add_posts none_found='No Posts Found'] – Custom message to display when no posts are found.
  • [ic_add_posts template='template-in-theme-dir.php'] – In case you want to style your markup, add meta data, etc. Each shortcode can reference a different template. These templates must exist in the theme directory or in a sub-directory named posts-in-page .

Or any combination of the above.

Shortcode Examples

Not sure how to use the shortcodes above to get what you want? Here are a few examples to get you started:

** Example 1 **

Let’s say you want to pull a specific post called “What I love about coffee” , which has a post ID of 34, somewhere on your About Us page. Your shortcode should look like this:


[ic_add_posts ids='34']

** Example 2 **

Alright, now let’s say that you want to pull in all posts from two categories into your WordPress page. One category is WordPress Rocks and the other is WordPress Rolls . Plus, you’d like to display them three per page, rather than the default number of posts. Depending on your category slugs, your shortcode should probably look like this:


[ic_add_posts category='wordpress-rocks,wordpress-rolls' showposts='3']

** Example 3 **

Now, you’re ambitious and want to try something complex. Let’s say you’ve got a page called Plugins Are Awesome and, in it, you want to pull in posts that match the following criteria:

  • posts from a custom post type called Testimonials ,
  • posts that are in the Testimonial Type custom taxonomy using the term Customer ,
  • you want to display six testimonials per page,
  • you’d like them displayed in ascending order,
  • finally, you’ve created a custom template to use in presenting these posts and named it my-posts-in-page-template.php .

Your shortcode might look like this:


[ic_add_posts showposts='6' post_type='testimonials' tax='testimonial-type' term='customer' order='ASC' template='my-posts-in-page-template.php']

Using Shortcodes within a PHP function

If you’d like to use this plugin to pull posts directly into your theme’s template files, you can drop the following WordPress function in your template files, replacing the [shortcode] part with your, custom shortcode.




Developer Hooks

There are several hooks you can use to filter the output of your template files:

  • posts_in_page_results – Filter results
  • posts_in_page_args – Filter the query arguments
  • posts_in_page_paginate – Filter pagination
  • posts_in_page_pre_loop – Runs right before the loop (posts_loop_template.php)
  • posts_in_page_post_loop – Runs right after the loop

easily , posts , page , using , simple , shortcodes , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference