rocketman1223
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: Using template tags in the new menu managerI agree with Nadreck on this one; I love the new custom menus, but being able to use the template tags would be very useful (I thought I was the only one that noticed this…can’t find anything else online about this or any workarounds for it that doesn’t involve using older methods.)!
Forum: Fixing WordPress
In reply to: query_posts() and get_posts() eliminate conditional tags?i think my issue is close enough to this topic to add to this thread…
I want a sidebar pop-up to pull content from portfolio pages and then link to them in the sidebar (a good example would be the “Recent Projects” section on https://www.barbariangroup.com/). To do so, I will need to pull permalink, title, tags and likely a custom field or two. But, all of this is about 2 steps ahead of where I am right now.
Using the following very basic test query, I’m only able to pull permalink and title. I’m not close to adequate with PHP to figure out my problem and this is my first stab at making significant customizations in WP (despite using it for years). Here’s my code:
<?php $portfolio_posts = new WP_Query('page_id=1156'); if($portfolio_posts->have_posts()) : while($portfolio_posts->have_posts()) : $portfolio_posts->the_post(); ?> <!-- do stuff --> <?php endwhile; endif; ?>
From a different forum, I got the idea to try the following, which does pull the correct content from the page, but it completely ruins all other post queries on the page.
<?php global $post; $myposts = get_posts('page_id=1156'); foreach($myposts as $post) : setup_postdata($post); ?> <!-- do stuff --> <?php endwhile; ?>
Thanks in advance!
Forum: Fixing WordPress
In reply to: Linking to non-WP pages when WP is in rootI, too, am experiencing the exact same issue. And, from what I’ve been reading, I think you’re right about it being related to .htaccess. Unfortunately, I have found nothing insightful on the subject yet.
Looking for feedback…