Snippets Collection Part – 4

Programming-7

How To Limit Posts Per Page On Search

Using the following snippet, you will be able to limit posts per page on search.

Snippet Source/Credit: WordPress.org

How To Display The Number Of Results In WordPress Search

Using the following snippet, you will be able to display the number of results in WordPress search.

Now, simply replace it with to:

Snippet Source/Credit: ProBlogDesign

How To Log-in A WordPress User Programmatically

Using the following snippet, you will be able to log-in a WordPress user programmatically.

Once done, now to log-in a user, just simply do the following:

Snippet Source/Credit: emoticode

How To Create A Pinterest ‘Pin It’ Button For Your Blog

Using the following snippet, you will be able to create a Pinterest “Pin It” button for your blog.

Once done, open your footer.php file and add the Pinterest JavaScript code:

Snippet source/Credit: MarketingTechBlog

The Editorial Team

The Editorial Team

The Editorial Team at JustWP is a team of WordPress experts led by Karan Chopra.

You may also like...