Pulling from Category Page
-
I want to pull the contents of a archive/category page on WordPress to show on a subdomain via an index.php.
Here’s what I want to see, the contents of this page: https://intorremolinos.co.uk/placecategory/accommodation/
Here’s the sample subdomain, where I want the previous to appear: https://catredi.intorremolinos.co.uk/
Here’s the main domain: https://intorremolinos.co.uk/
Right now, all that is showing is the exact same thing the homepage has.
I already have something though obviously it’s not working. Here’s the code I’m using, it’s on an index.php file on the subdomain folder.
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); $_GET['placecategory_id']=56; /** Loads the WordPress Environment and Template */ require('../wp-blog-header.php');
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
What’s the solution for this?
[No bumping. If it’s that urgent, consider hiring someone.]
- The topic ‘Pulling from Category Page’ is closed to new replies.