Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Include two Tag Articles in one page. (http://forum.bytesforall.com/showthread.php?t=17075)

gamix07 Mar 21, 2012 01:19 AM

Include two Tag Articles in one page.
 
Hello guyz! I am new here and i got one question:

Can I embed two tag articles in one page? Like example: When you click a tag in Atahualpa blog, you will see all the posts from that tag. Ok, now I need to include all the posts from two tags in one page.

Thanks for help! :)



Regards,
Mihai Morjan

juggledad Mar 21, 2012 03:16 AM

The only way to do that would be with a custom query. There is a page template in the gold forums tutorials that allows you to enter a custom query. (the gold forums are available to members who have donated $20 or more)

gamix07 Mar 26, 2012 10:23 AM

Searching and asking people finally i solved this problem. I don't need money to help people, so this is guyz:
Include in page template the code:

Code:

<?php
$args = array( 'tag' => tag_name_here);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
        <div id="post-headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
        <?php the_content(); ?>
<?php endforeach; ?>

Know anyone how I can include in a separate template, the atahualpa js scripts? My jQuery plugins doesn't work on this page.

Regards,
Mihai Morjan

juggledad Mar 26, 2012 12:13 PM

I'm glad you found a solution for your issue and shared it.


All times are GMT -6. The time now is 11:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.