business2press
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display posts by tagunfortunately that does not work, the widget still show on every page.
Forum: Fixing WordPress
In reply to: How to display posts by tagThanks, the only problem is that the part of my sidebar is not widgitized, so I must add the code manually…. not really sure where to put it 🙁
Forum: Fixing WordPress
In reply to: How to display posts by tagany ideas? 🙂
Forum: Fixing WordPress
In reply to: How to display posts by tagIn the code above:
<?php ((‘dynamic_sidebar’) && dynamic_sidebar(3)); ?>
I tried changing it to:
<?php if is_category(‘200’) ((‘dynamic_sidebar’) && dynamic_sidebar(3)); ?>
but unfortunately it doesn’t work…any ideas?
@michael, thx very much for all of your help!
Forum: Fixing WordPress
In reply to: How to display posts by tagUPDATE: I got the styling of the list complete, just wondering now where to put the code if is_category(‘200’) in order to show the widget only when that category page is active. thanks again.
Forum: Fixing WordPress
In reply to: How to display posts by tagthanks a lot, it works perfectly! thanks for pointing me to that plugin as well, it seems great, but it doesn’t look like I can use it because it requires WP 2.8+
I just have one more question… this is the code I have so far:
<?php ((‘dynamic_sidebar’) && dynamic_sidebar(3)); ?>
<div class=”widget”>
<?php
$args=array(
‘tag’ => ‘google’,
‘showposts’=>4,
‘caller_get_posts’=>1
);$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo ‘<h2>Google</h2>’;
while ($my_query->have_posts()) : $my_query->the_post(); ?><?php
endwhile;
} //if ($my_query)
wp_reset_query(); // Restore global post data stomped by the_post().
?></div>
<?php ?>Note: from the first code you provided, I changed the < p> to
< ul>… I’m trying to get it to style the posts as my sidebar in a list…but for some reason that is not working….my question: how can I get the widget to only display when it is the category page? I got the tag which is: if is_category(‘200’) , but I have no idea where to include it in the code above…if you can please point it out to me that would be awesome.
Thanks so much for your help, greatly appreciated, really.
Forum: Fixing WordPress
In reply to: How to display posts by tagthanks for the reply, I’m not very sure to be honest how to do it…I have tags of the post showing on single pages, so the_tags function is there on single pages.
I was hoping on the category page such as “Technology”, to add on the sidebar a widget that displays posts (such as the latest 5 posts) from a specific tag such as “Google”.
I know how to add the widget + conditional tags for the pages in order for the widget to show up, I just have no idea what the php code is to show the tags.
I’ve tried this:
<?php
query_posts(‘tag=economy’);
?>but that doesn’t seem to do nothing (no errors, no nothing)
thanks!
Forum: Fixing WordPress
In reply to: RSS won’t show full storiesThanks for the reply. The weird thing is in my FeedBurner settings, it shows the full feed. but then when i go to my feed URL or click the RSS button from the browser when on my site, it shows a small summary only –
do you think there could be a conflict with the plugin WP-SUPERCACHE?
thanks