Credits

Showing posts with label Wordpress. Show all posts
Showing posts with label Wordpress. Show all posts

Insert All Images at Once from WordPress Gallery

WordPress is a great blogging platform and its plugin compatibility makes it more useful and reliable. Once, i thought to start a photo blog using an ordinary wordpress theme, I simply attached all pictures and made a gallery, I was wondering how i can insert all pictures or multiple pictures instead or inserting gallery thumbnails. Inserting pictures one by one was a bad and time wasting experience for me.
 
Actually, I was looking for some trick or plugin to display all gallery pictures at once instead of inserting pictures one by one. I searched for some php tricks and template hacks but could find what i was looking for. But One day, I just got what i was looking for. I found a plugin that solved my problem to show all pictures at once from gallery and this plugin made me able to insert all pictures in a gallery rather than showing .
So, Simply Download the plugin (its called Fast Image Insert)

What This Plugin Actually Do ?
Actually, this is a simple plugin which put check box with all gallery pictures and some extra links on gallery window, like select all pictures, insert all pictures etc. So, you just have to simply select all gallery pictures or multiple pictures of your choice and simply click on INSERT all pictures.
 
 
Is this what you were looking for ?

Google Adsense Ads Between WordPress Posts

WordPress is one of the most used platform of blogging. Normally people earn money by placing Google Ads in sidebars only BUT you can increase Google Adsense Earnings by placing Google Ads between WordPress posts at mainpage. There are several plugins to show Google Adsense ads between WordPress posts. But here is a manuall method to show Google Ads inside WordPress posts.
.
All You have to edit your WordPress Theme’s index.php file

1- Login to WordPress Admin Panel and navigate to Appearance > Theme Editor
2- Now, Find and click on index.php (Main Index Template ) template from right listed files list.
3- Find This Code

<?php if (have_posts()) : ?>

 4- Above given code with following code

<?php if (have_posts()) : ?>
<?php $count = 1; ?>

5- Now find following code

<div class=”entry”>
or
<div class=”postcontent”>

6- Add following code after above searched code.

<?php if ($count == 1) : ?>
AdSense Code
<?php endif; $count++; ?>

 
By defafult the add will be displayed after 1st post, BUT If you want the add under desired number of post, simple change $count == 2 the figure.

How to Show Adsense ads After First Post in WordPress


Google Adsense is world’s most famous Online application to earn money from blogs and websites. Placing Google Ads on right place is an important strategy to increase Google Adsense earnings from same traffic. One of the way to increase Google ADSENSE earnings is to place Google Adsense ads after first post of WordPress Blog. This will catch the intention of Blog reader and he will surely click on any ad which will increase your Earnings. Anyways, Here is a method to Place Google Adsense ads after first post or second,third post of your wordpress blog. You can show affiliate banners and ads after first post in wordpress if you are not using Google Adsense. Its Up to you. Follow below given steps to Display Google Adsense Ads after First Post in WordPress.

  • Login in Your WordPress BLOG
  • Now Go to Dashboard > Appearance > Theme Editor
  • Click on Main Index Template (index.php) and start editing this file by following below given instructions.
  • Find This
<?php while (have_posts()) : the_post(); ?>
  • Replace This with Below Given Code.
<?php $adcount = 1; ?>
<?php while (have_posts()) : the_post(); ?>
  • Now Find
<?php endwhile; ?>

  • Replace Above Line with below given code:
<?php $adcount++; ?>
<?php endwhile; ?>
  • Now, Place Your Google Adsense Ad Script inside loop i.e. after “while” line but before “endwhile” code. You can choose exact location yourself by copy-pasting below given code:
<?php if ($adcount == 1) : ?>
<!– Put Your AdSense Code here –>
<?php endif; $adcount++; ?>
Example: If you want to place Google Adsense Ad after title of first post in wordpress then you need
  • Find This Code
<?php the_title(); ?></a>

  • And replace with
<?php the_title(); ?></a>
<?php if ($adcount == 1) : ?>
<!– Put Your AdSense Code here –>
<?php endif; $adcount++; ?>
If you follow example then Google Adsense Ads will display after the title of first post in WordPress. But you can change the location of Google Adsense in WordPress by placing above given code at your desired place in WordPress.

Remove Duplicate Posts from WordPress Quickly


Is your WordPress Blog Having Duplicate Contents ? Okay, Dont worry, Actually duplicate contents has been a major issue with auto blogs and RSS feed catchers. Duplicate Contents also happens if you are importing your blogger blog again and again or if you are importing wordpress export file again and again. There are several wordpress plugins to delete duplicate posts from wordpress blog database but some of those plugins do not work and some of them are not free. Here is a free way to remove duplicate posts from wordpress easily. Just follow below given steps to Delete wordpress posts that are posted twice, thrice or more
 
Step#1
Login in Your Hosting Control Panel and Click on myPhpadmin
Control Panel

Step#2
After Clicking on myPhpadmin, you will see a screen like below shown picture.
My PHP Admin
 
Step#3
Select your Blog’s mySQL database Account, (You will see a list of tables within that database)
Now Click on SQL (it can be located at next tab of structure). After Clicking on SQL, you will see a related image as shown below.
SQL

Copy-past below given SQL command and click on Go


DELETE bad_rows.*
from wp_posts as bad_rows
inner join (
select post_title, MIN(id) as min_id
from wp_posts
group by post_title
having count(*) > 1
) as good_rows on good_rows.post_title = bad_rows.post_title
and good_rows.min_id <> bad_rows.id
Now Just wait for about 2 minutes and All your Duplicate Posts will be removed magically

Delete All Pending Comments from WordPress Blog


WordPress is most used Blogging Platform and of the function of WordPress blogs is Anyone can post Comments to an Article posted at Some WordPress Blog. A professional blogger knows about the Importance of Reader’s Comments posted on blog. When some post any comment or his/her opnion on a wordpress blog then it can be of three categories.
  1. Approved Comments: These type of comments and opinions are displayed on your blog below related post AFTER your approval.
  2. Pending Comments: Pending Comments need to be moderated by owner of blog before approval for being displayed on Blog.
  3. Spam Comments: WordPress detects some comments made by robots or software which do not have any relation with your Blog. These comments are only made to promote products. WordPress treat these Comments as SPAM.
Delete All Pending Comments
If your blog is famous or having healthy traffic then its obvious your blog will receive many SPAM comments. Its easy to Delete All Spam Comments from your wordpress blog by navigating Login -> Dashboard -> Comments -> Spam and Clicking on “Delete All SPAM” button. BUT the problem comes when thousands of comments pass the Spam filter and treated as Pending Comment and need you moderation for approval. Its really difficult and time consuming to delete all Pending Comments of Your WordPress Blog because if your blog is having about 1000 pending comments, Then you could only delete 20 comments per batch. So, Here i have found a way to Mass Delete All Pending Comments from Your WordPress Blog. In this way you could remove all Pending Comments from WordPress.
Step#1
Login in Your Hosting Control Panel and Click on myPhpadmin
Control Panel
Step#2
After Clicking on myPhpadmin, you will see a screen like below shown picture.
My PHP Admin
Step#3
Select your Blog’s mySQL database Account, (You will see a list of tables within that database)
Now Click on SQL (it can be located at next tab of structure). After Clicking on SQL, you will see a related image as shown below.
SQL
Copy-past below given SQL command and click on Go


DELETE FROM wp_comments WHERE comment_approved = '0'
Now you will get a message saying something like “853 rows affected”.
You have successfully Removed All Pending Comments of your WordPress Blog. Now login in your wordpress blog and you will see that all pending comments have been removed.
 

Website | The content is copyrighted and may not be reproduced on other websites. © | All Rights Reserved 2014

FreshDream Blogger template by Tacni