theApe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Insert current Tag into a query_postsThank you! Thank you! Thank you!
You’re a genius!
Forum: Themes and Templates
In reply to: Insert current Tag into a query_postsEvery fifth post in the theme archive has a unique style. So I have a loop which calls the first post, then another loop which calls the next four using offset, then another one, then another four and so on. Each loop is called by including a single php file with its own unique query_post above it to control the output.
Thank you for all your help so far, but I’m still getting stuck on how to insert the current tag into the query_post parameters.
If this calls the current queried tag…
<?php if (is_tag( )) { $tag = get_query_var('tag'); } ?>how do I make the current tag replace ‘Something’ in the query?
query_posts('showposts=1&tag=Something');Forum: Themes and Templates
In reply to: Insert current Tag into a query_postsThank you Michael!
I had the is_tag() and the tag=, but, I’ve no idea on how to use the get_terms with them and I’m not sure if I need an array as I only want to call the one tag at a time. I was also looking at single_tag_title, but my problem is how I pull the output into the parameters of the query_posts.
Am I on the right track with the code below.
<?php if( is_tag() ) { $tags = get_terms('post_tag'); query_posts('showposts=1&tag=' . $tags . ''); } ?>Forum: Themes and Templates
In reply to: Insert current Tag into a query_postsI’m doing this before and outside of the loop, by the way.
Forum: Everything else WordPress
In reply to: Template tag: URL friendly author nameOff topic!..
Can we not mark topics as resolved anymore?
Forum: Everything else WordPress
In reply to: Template tag: URL friendly author name$user->user_nicename;
I thought I knew it 🙂
Forum: Fixing WordPress
In reply to: Categories disappeared?!I had the problem described here and in more depth in this post, all I did to solve this problem was restart my VPS (reboot the server), but this was after I had gone through each plugin one by one and re-uploaded WP which had no affect, it was a mission of trial and error. The problem appeared for no reason inflicted by myself, so it may have been related to something on the server being updated or maintained and would explain why the same problem occurred on separate blogs hosted on the same server. The restart solved it.
– Quote from here.
Forum: Fixing WordPress
In reply to: Categories and the Tags are missing!I had the problem described here and in more depth in this post, all I did to solve this problem was restart my VPS (reboot the server), but this was after I had gone through each plugin one by one and re-uploaded WP which had no affect, it was a mission of trial and error. The problem appeared for no reason inflicted by myself, so it may have been related to something on the server being updated or maintained and that would explain why the same problem occurred on separate blogs hosted on the same server. The restart solved it.
Forum: Plugins
In reply to: [Plugin: WP Status Notifier] works perfectlyIs it suppose to add a link to http://wordpresssupplies.com to your blogroll or has it been hacked?
Forum: Fixing WordPress
In reply to: Future posts on the single.phpI’m using this in the index.php
<?php $my_query = new WP_Query('category_name=exhibitions&post_status=future&order=ASC&showposts=2'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>Forum: Fixing WordPress
In reply to: Edit ftp_credentialsAs far as I can see, I’ll just have to bite my tongue and edit the table directly.
Forum: Everything else WordPress
In reply to: Limit to the number of postsBrilliant! I know WP normally scales without a problem, but I was looking at the docs and couldn’t figure out how it scaled on this occasion. Thanks for the assistance.
Forum: Themes and Templates
In reply to: One Presentation Tab Controlling Multiple BlogsUse the PHP include call in all of the theme templates pointing to one master theme/blog.
Forum: Everything else WordPress
In reply to: No need for loginAnother application for this would be to have no login requirements for a WP demo site. So the site would be all front-end.
Forum: Plugins
In reply to: Looking for a quick search hack