Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Tuesday, November 22, 2016

How To Get Next 10 Items In Wordpress Blog Post Feed

How To Get Next 10 Items In Wordpress Blog Post Feed


Hi?, Ever wondered how or if  you could access more than the most recent X posts defined in a wordpress post feed??
Heres a Quick way to get Next 10 items from the feed. normally a wordpress feed link would look like this http://yoursite.com/feed ,

this would get the latest 10 items or the number set on feed settings in admin panel.
To get the next X of items from the feed, just add /?paged=2 at then end of your feed link.
I.e
yourwebsite.com/feed -> get last 10 posts
yourwebsite.com/feed/?paged=2 -> get next 10 posts
just incase, to get to the next X third Page Change ?paged=2  to ?paged=3 and so on.
I hope this helps.

If you have anything to say or ask, Kindly make use of the comment form below. If you also want me to post a short review of your company or product, on this blog, do not hesitate to contact me.

Please, do not forget to SUBSCRIBE to this blog, so that you can be receiving future articles, freebies DIRECTLY into your email inbox, even when you are not online.

CLICK HERE TO SUBSCRIBE NOW!

Cheers!

Go to link Download

Read more »

Wednesday, October 26, 2016

How to Make Popular Post in Wordpress

How to Make Popular Post in Wordpress


How to Make Popular Post in Wordpress - Popular post is a widget that can give some information about the popular article in your blog. and the visitor often like tu read the article that very popular because that article is the very interesting. to make popular post in wordpress is very easy, lets follow the AA Tech steps.

How to Make Popular Post in Wordpress
How to Make Popular Post in Wordpress


this is some steps to make popular post:

=> install the WordPress Popular Posts plugin.

=> open sidebar.php in your template

=> Submit code <ul><?php get_mostpopular("range=daily&limit=10"); ?></ul> in your sidebar

=>  Range:
- daily: Popular Post today,
- weekly: Popular Post this week,
- monthly: Popular Post this month,
- yearly: Popular Post this year.
Limit: max article that show.

=> save your template

ok, now you had been make popular post, and I hope you can see the popular post in your blog. thanks

Go to link Download

Read more »

Sunday, October 23, 2016

How to Change a Wordpress Logo in Login Page

How to Change a Wordpress Logo in Login Page


 




How to Change a Wordpress Logo in Login Page - I want to share a trick for wordpress. this trick is How to Change a Wordpress Logo in Login Page which can make your wordpress become more interesting.

You can to Change Wordpress logo, you can to put your photo or other picture in wordpress login page.. You want to try this??

This is the secret, First open the functions.php file, and copy this code:

function custom_loginlogo() {
echo ‘<style type=”text/css”>
h1 a {background-image: url(‘.get_bloginfo(‘template_directory’).’/images/login_logo.png) !important; }
</style>’;
}
add_action(‘login_head’, ‘custom_loginlogo’);



dont forget to copy logo file to image folder at your theme, and adjust the logo file name.. for example the name login_logo.png.

Ok, I hope you become more cool with the new logo..

Go to link Download

Read more »

Sunday, September 25, 2016

How to Make Random Post in Wordpress

How to Make Random Post in Wordpress


How to Make Random Post in Wordpress - random post is a widget that show some post with random article, this is step to showed to visitor the article maybe they need it. today AA Tech will explain for you how to make random post in wordpress.

How to Make Random Post in Wordpress
How to Make Random Post in Wordpress

to make random post in wordpress, you can follow this step:

=> login to your account

=> open sidebar.php in your template

=> submit this code:

<ul><?php $rand_posts = get_posts(‘numberposts=5&orderby=rand’); foreach( $rand_posts as $post ) :
?><li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li><?php endforeach; ?></ul>

=> note: Numberposts: max article that show

=> save your template.

ok finished, now you can see the random post in your blog, thank you because you read this article. you can see article "How to make Recent Post in Wordpress" and "How to Make Popular Post in Wordpress". that is my article before posted this article.

Go to link Download

Read more »

Tuesday, September 13, 2016

How To Add Default Featured Image To WordPress Posts and Categories

How To Add Default Featured Image To WordPress Posts and Categories


If you publish a post without setting a featured image, an empty box will be displayed next to the post if your WordPress theme supports featured image and has no fallback option.


If you wont want the empty box to be displayed, then you need to set a default fallback image when no featured image is found. This can also be very useful when you forget to set a featured image for your post.

In this article, I will show you how to add a default featured image in WordPress using a plugin.

First thing you need to do is install and activate the Default Featured Image plugin.

Once installed and activated, the plugin adds an option under Settings » Media to choose a default image.



Upload your default image and save settings. This image could be any image, for example an image of your site logo on a plain background.

That’s all.

Now, when your theme looks for a featured image and does not find one, it will display the default image.

If you would like to set a fallback Featured Image based on post category, using this same plugin, read the conditional featured images tutorial.

I hope this helps.



Go to link Download

Read more »

Friday, September 2, 2016

How To Move A WordPress Site From LocalHost WAMP to Internet

How To Move A WordPress Site From LocalHost WAMP to Internet


As a web designer/developer, that moment always comes when you have to upload your clients design to the internet, probably to a purchased hosting server so users can access your clients website from the internet. This can be easily done when you designed the webpages in just html (probably + CSS) files, but it could be a little tricky trying to move a website designed using the WordPress CMS on your localhost WAMP server.
Here is a run down on the various stages we are going to go through in order to successfully move our wordpress site or blog to the internet from WAMP.
moving wordpress from WAMP to the internet

Changing URL

We need to change the URL of our wordpress site from wordpress dashboard so that after moving our site, it would successfully load when we visit the domain we purchased from the webhost. Follow the below steps to achieve that.
1. Once logged into your wordpress dashboard which is loaded from localhost WAMP server on your PC, click on Setting > General from the left sidebar.
Go to wordpress settings
2. On the page that loads up, change the WordPress Address and Site Address you can find to your already purchased domain. In my case, i’m changing http://localhost/pf to http://www.xyz.com . Then Click on Save Changes at the bottom of the page.
Changing the URL
After you must have done this, your site would no longer be accessible via the former URL on your PC (Might load up, but not correctly with the theme and other settings). Don’t worry, that’s what we need.

Backing up and Restoring the WordPress Files

Now it’s time to move your site files to your web server, firstly you have to compress your wordpress site into an archive so you could easily upload it to your servers.
3. You should know your way around your WAMP installation folder. I installed my wordpress site in D:wampwwwpf .
Go to your wordpress installation folder, select all files and compress to an archive using 7zip, preferably a .tar file.
compressing using 7zip

Uploading to Server

4. Create an FTP account on your webhost cPanel server and upload the file to the domain directory. If the domain is not an addon domain, you must likely would have to upload the compressed file to public_html directory.
Note: Make sure you delete all files in this directory. Then extract or uncompress your uploaded file here by Right clicking on your upload and click on Extract from cPanel’s File Manager.
  • Must Read: How to Create an FTP account on cPanel.
  • How To Upload Files to Web Host server via FTP using Filezilla.

Backing Up and Restoring the WordPress Database

Now it’s time to backup your blog’s database. I’m assuming you know the database name you installed your wordpress site to on your pc. Follow the below steps to grab a copy of the database.
5. Visit http://localhost/phpmyadmin on your browser to access phpMyAdmin. Then select the wordpress’ database from the left sidebar.
6. Click on the Export tab, then click on Go to export the database to your pc.
Exporting a database

Creating and Importing the Database into your webserver

7. Now log in to your cPanel’s dashboard, create a new MySQL database, User and connect the user to the database.
8. In your web-server’s cPanel, click on phpMyAdmin, and locate the new database you just created from the left sidebar, click on Import, click on browse your computer to select the sql file you backedup earlier, then click on Go at the bottom of the page to initiate the upload process.
importing the database
9. Here’s what you get after a successful database upload. Now it’s time to link the already uploaded wordpress files to this MySQL database.
mysql upload successful

Connecting WordPress To New Database

10. Launch File Manager via cPanel, and navigate to the directory where you uploaded your wordpress file earlier (most likely the public_html path if the domain isn’t an addon to your hosting plan).
11. Edit the wp-config.php file and replace the database name, database user and password with the details you created while setting up the fresh database, then save.
Replace DB
Hurray! Load your live domain URL and your website should be live over the internet.
If you find any difficulties in the process, feel free to let me know using the comment section below.

Go to link Download

Read more »