So you’ve got a lot of Blogs or sites in WordPress and you want to share links to posts from one site to the other? With the following script you can Display recent WordPress Posts links on another WordPress Blog!
I’ve got several blogs! And I don’t like crossposting! But I do like showing links from one blog to the other.
So I do like, crosslinking yes! But there is not a very good sollution to display your wordpress posts on other wordpress blogs.
So I created a small script do do this just for you!
Display recent WordPress Posts links
Before you head off to my script there are a few small steps to make before you can use my script.
First you will have to install a plugin on your site called Snippets. With this plugin you can add extra functionality to your site.
Installed it? Great! You need some information from your other site (where you want to display the post links from) to get my script working.
You need the following 4 items from your wp_config.php to get this up and running.
You get this information from your wp_config file. It starts at about line 19. You’ll need a ftp connection to your server or you can use the plugin WP Config File Editor on your site to get this information.
When the two sites are on different servers you also need to fill in the Host part. When on the same server you can leave localhost. But when not… you will need to fill in the IP address of the other server.
So create a new snippet within the snippet plugin with the code below. Fill in the blanks (XXXXXXX) from your wp_config file.
And then you’re all done!
Want to show off some links to posts on the other site?
To your post or sidebar / footer widgets.
You can add some extra variables to the outcome, like name (of the site) and number of links to show.
You can add these very easily like:
[show-postsothersite sitename='vandersluijs.nl' limit='10']
And your all done!
WordPress Posts links on another WordPress Blog example
So wanna see it work? Here you can see some examples of my script working form these following wordpress blogs :
Artikelen van 40 en fit!
- Quaker ontbijt, de beste start van de dag
- Zijn Decathlon Sport Gels goed
- Snelle energie door sportgel
- Knie blessure behandelen
- Strong Viking Hills Edition 2016
Artikelen van iTheoSorry, no posts to show!
Artikelen van De Zeeuwse Fotograaf!Sorry, no posts to show!
Like this script? Please Donate one euro for a cup of coffee! Thank you!