how to pagination single post wordpress theme

If you are creating the bigger post then I recommend to in post pagination. Post pagination is supported by wordpress itself. Many people does not know about this facility of wordpress.

how to paginate the single wordpress post
how to paginate the single wordpress post

When you are writing the wordpress post just put <!–nextpage–> tag in your post. So from there next paragraph content will be show on next page but post will be same.

What is in post pagination?

WordPress tag similar to the more tag, except it can be used any number of times in a post, and each insert will “break” and paginate the post at that location. Hyperlinks to the paginated sections of the post are then generated in combination with the wp_link_pages() or link_pages() template tag.

If you are using the <!–nextpage–> tag in bigger post then wordpress post loading will more faster to your users.

Here I am going to tell you about <!–more–> tag also.  This tag is also very nice and good for showing some starting content of post.

What is more tag?

WordPress tag that breaks a post into “teaser” and content sections. Type a few paragraphs, insert this tag, then compose the rest of your post. On your blog’s home page you’ll see only those first paragraphs with a hyperlink ((more...)), which when followed displays the rest of the post’s content.

Create new stencil art effect using PhotoShop

Photoshop tutorial for creating the new stencil art effect in PhotoShop. we given full step by step guide with their screenshots and explanation.

create stencil effect in photoshop

Open your photo as per your choice.

Now create duplicate the layer.

Select layer >> new fill layer >> solid color

Select a bright color in the color Picker dialogue box that is going to stand out against your image.

Drag your new fill layer in between the two other layers.

Now select pen tool cut unwanted part of images

It will look like below

Select Image >> Adjustments >> Threshold

For image in black & white mode

Now it will be blurry so we need to adjust the curves. Image >> Adjustments >> Curves

Select second layer & change the color in to black

Now your stencil art is ready now

create stencil effect in photoshop
create stencil effect in photoshop

Create new sunset effect using PhotoShop

In this article, We given full steps with screen-shot. Using this article you can Create new sunset effect using PhotoShop. We given tips for using photoshop.

Create new sunset effect using PhotoShop

Select a photo, which is having sky  background search in goggle

Now create duplicate of photo

Select brush tool with 20 opacity select black color & fill on ground side to top side on image

Now select new blank layer

Your layer palate & photo has to look like below

Now blank layer fil with black color

In lens flare have 80 percent of brightness

Now select blend option select linear dodge

Your senset is ready now

Create smooth wind effect in PhotoShop

In this tutorial we are going to be show you how to Create smooth wind effect in PhotoShop. we given full steps and snap shots the full description.

Create smooth wind effect in PhotoShop

First select a text here I selected wind

Now select layer >> rasterize >> type
That we can modify our text

Select filter >> stylize >> wind

t is a best tool in PhotoShop that you can use on text
In wind effect have methods wind, blast, and stagger you can also make direction
Front to right or front to left whichever is best for our text we can select
Here is select wind with the direction of front to right

Create smooth wind effect in PhotoShop
Create smooth wind effect in PhotoShop

Now go to filter select liquefy effect
Select fast wrap tools & on the text drag left to right direction
So you wind text effect is ready now

Create red vintage photoshop effect with photoshop

Photoshop tutorial for creating red vintage photo using photoshop. In this tutorial we are going to be showing you how to create a photo effect.

Create red vintage photoshop effect with photoshop

First select one your favorite photo

Here is select this

Now make it duplicate layer & select blend mode darken

Create another blank layer select gradient tool draw a red color effect

One side has to dark red & second side lighted red

Layer palette & photo have to look like given below

Now put anther gradient shade on this layer with yellow & red mix

& Opacity has to 30 percent

Your photo effect is almost done now

Now go to filter >> render >> lightning effects

Now add

Go to image >> adjustment >> brightness/contrast

Your hot photo is ready now

Create red vintage photoshop effect with photoshop
Create red vintage photoshop effect with photoshop

How to create multi colorful effect with photoshop

Photoshop tutorial for creating multicolor effect using photoshop. We have given full step by step guide and short cut key explanation in detail.

create multi colorful effect with photoshop

 

Here I am going to show you how we can make colorful photo image

First here I select a photo which is I downloaded by google given below

Second step go to select >> new adjustment layer >> hue / saturation

& select values given below

Now create a new layer select brush tool & fill it with different color which is you like

& new layer blend more have multiply

Now select filter blur >> Gaussians blur & select 80 value your colorful photo ready now

multi color effect photoshop
multi color effect photoshop

get recent comments without wordpress plugin

Showing the most recent comments is great for SEO purpose. Our code snippet will able to get recent comments without wordpress plugin in your wordpress site.

get recent comments without wordpress plugin

You can display the most recent comments of your entire blog without any wordpress plugin. Showing the most recent comments is great for SEO purpose. Your site will increase the visibility and people interaction. Socially you and your blog will became more famous. Using following code snippet you will be able to add the recent comments in your wordpress site.

I want to display the comments in footer area. I created following code. You can copy paste the code in your sidebar.php or footer.php file.

Using following code you are able to display recent comments with author’s gr-avatar also.


<?php
$total_comments = $wpdb->get_results("SELECT comment_date_gmt, comment_author, comment_ID, comment_post_ID, comment_author_email FROM $wpdb->comments WHERE comment_approved = '1' and comment_type != 'trackback' ORDER BY comment_date_gmt DESC LIMIT 10");
$comment_total = count($total_comments);
echo '<ul>';
for ($comments = 0; $comments < $comment_total; $comments++) {
echo "<div style='clear:both;width:355px;padding-top:3px;'><div style='float:left;width:35px;'>";
echo get_avatar($total_comments[$comments]->comment_author_email,$size='32',$default='<path_to_url>' );
echo "</div> <div style='width:320px;'>";
echo '<li>';
echo $total_comments[$comments]->comment_author . ' says ';
echo '<a href="'. get_permalink($total_comments[$comments]->comment_post_ID) . '#comment-' . $total_comments[$comments]->comment_ID . '">';
echo get_the_title($total_comments[$comments]->comment_post_ID);
echo '</a></li></div></div>';
}
echo '</ul>'
?>

My footer is looking like as follows:

get recent comments without wordpress plugin
get recent comments without wordpress plugin

how to create wordpress pages by script

For plugin or custom wordpress theme we need create wordpress pages by script. In this article we given code to how to create wordpress pages by script.

how to create wordpress pages by script

You can create the pages by using script. You can execute any script using the “$wpdb->insert” or

“$wpdb->query”.

For creating wordpress post or page you can use the wp_insert_post function. Before calling wp_insert_post() it is necessary to create an object (typically an array) to pass the necessary elements that make up a post. The wp_insert_post() will fill out a default list of these but the user is required to provide the title and content otherwise the database write will fail.

You can use following code for creating the page.  This code will execute when only you are logged in to wordpress.

// Create post object
  $my_post = array();
  $my_post['post_title'] = 'My post';
  $my_post['post_content'] = 'This is my post.';
  $my_post['post_status'] = 'publish';
  $my_post['post_author'] = 1;
  $my_post['post_type'] = 'page',
  $my_post['post_category'] = array(8,39);

// Insert the post into the database
  wp_insert_post( $my_post );

You can create wordpress plugin and use this code. Use following code for wordpress plugin. Copy the code and create the create_wordpress_pages.php file and put in plugin folder.

/*
Plugin Name: Create WordPress Pages
Plugin URI: http://images.purabtech.in/
Description: Create wordpress pages by script
Version: 1.0
Author: wordpressapi
Author URI: http://images.purabtech.in/
*/
function create_wordpress_pages(){
// Create post object
  $my_post = array();
  $my_post['post_title'] = 'My post';
  $my_post['post_content'] = 'This is my post.';
  $my_post['post_status'] = 'publish';
  $my_post['post_author'] = 1;
  $my_post['post_type'] = 'page',
  $my_post['post_category'] = array(8,39);

// Insert the post into the database
  wp_insert_post( $my_post );
}
register_activation_hook(__FILE__, 'create_wordpress_pages');
how to create wordpress pages by script
how to create wordpress pages by script

How to create virtual tree effect in photoshop

In this photoshop tutorial we will show you to, create virtual tree effect in photoshop with very simple steps and photo samples.

create virtual tree effect in photoshop

Select first a photo here I selected a tree image

Create duplicate layer of that tree this layer must have to up side of other layers

Now create a layer which is background having black color

Layer status look like below

create virtual tree effect in photoshop
create virtual tree effect in photoshop

Create a new layer in that layer we have to put some shape here I put a leaf shape because the photo is having tree

Now create another layer in that layer we also have to leaf shape but its size has big compare first leaf

Fill the second leaf shape with green color

Now select first duplicate tree layer go to layer >> create clipping mask “ctrl + g”

Your first photo copy is ready now, another is select

Layer >> new >> layer set

In the layer set we have to put this layers

Now make duplicate sets & put in different position on the tree photo

Have fun!

How to use pagination in wordpress post without plugin

There is difference between post pagination and in post pagination.If you want to keep pagination in wordpress post without plugin, Than use our code

When we are developing the new wordpress theme then we need to always need to think about post pagination and in post pagination. Yes, there is difference between post pagination and in post pagination.

How to use pagination in wordpress post without plugin

How to use pagination in wordpress post without plugin
How to use pagination in wordpress post without plugin

If you want to keep single post and pagination between in single post that is also possible through wordpress api. In this article I will show you hwo to use the in page or post pagination.

Open your single.php file from wordpress theme folder and put following code in that.

<?php wp_link_pages( ); ?>

We can pass the following parameter the this function.

<?php $args = array(
    'before'           => '<p>' . __('Pages:'),
    'after'            => '</p>',
    'link_before'      => ,
    'link_after'       => ,
    'next_or_number'   => 'number',
    'nextpagelink'     => __('Next page'),
    'previouspagelink' => __('Previous page'),
    'pagelink'         => '%',
    'more_file'        => ,
    'echo'             => 1 ); ?>
<?php wp_link_pages( $args ); ?>

This is the one of the sample code.

<?php wp_link_pages('before=</pre>
&after=
<pre>&next_or_number=number&pagelink=page %'); ?>

Now I will explain What wordpress doing for using this function. WordPress is using simple explode php function for using the next page tag. Like following way.

$content = get_the_content();
$pages = explode('<!--<span class="hiddenSpellError" pre="" data-mce-bogus="1">nextpage</span>-->', $content);

you can also use the above code in your loop.