Tags and Includes – Not for the feint hearted
-
I would like to remote include a list of boats for sale. By adding a few words to that query it then shows related boats for sale to those keywords.
The boats need to come in to the sidebar so I had:<?php query_posts(); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php include("https://www....<urlforsearchhere>....?keyword=<?php the_tags(); ?>"); ?> <?php endwhile; else: endif; wp_reset_query(); ?>
Testing the URL out of an include works, bringing back a result. Having the include with no keywords shows 4 random boats. I am testing against one post with one tag, the one tag being “1967 Donzi”.
Any help would be very grateful.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Tags and Includes – Not for the feint hearted’ is closed to new replies.