Posting images from 2 different categories, to one single page, outside WP.
-
Hello,
I have two categories, Music and Video on one of the blogs I am hosting at https://unwind.setu.me/.
I want images form each of them, to be posted to my homepage, here: https://setu.me/#unwind-link.
In the left, there’s a simple div that pulls info from the Music category. I used the following code:
Before the head:<?php define('WP_USE_THEMES', false); require('./unwind/wp-load.php'); query_posts('category_name=Music&showposts=1'); ?>
And a simple
<?php while (have_posts()): the_post(); ?>
loop in the body.Also, I used Simple Image Grabber plugin to pull the image from the post.
How do I add the ‘Video’ category, and make it display it’s images too?
- The topic ‘Posting images from 2 different categories, to one single page, outside WP.’ is closed to new replies.