joeybottle
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Limit a query to just 4 Posts, not very usual Query!!!!Sounds great! Best thing would be to first hold about 2 or 3 Posts for each Term which is added to the Post and then show 4 random posts out of those posts. Is that possible? Because the way you described it, I don’t really understand how many posts are in the “hold” before the new loop shows 4 random posts out of them…waiting for your answer! Thanks a lot so far!
Forum: Fixing WordPress
In reply to: Limit a query to just 4 Posts, not very usual Query!!!!Yeah thats a good question! Right now after I have a lot of posts with a lot of Terms in that Taxonomy it will alway end up with 4 Posts each from a different Term.
And if the first term has 5 posts and the second has 3, to just show 4 from the first term isn’t really the best solution too for showing “Related Post”….
What would you suggest ??? The Solution as I got it right now, or the second one (you and I just described)…
OR ist there a possibility to mix up random posts from different terms but with a maximum of 4 Posts???
Forum: Fixing WordPress
In reply to: Limit a query to just 4 Posts, not very usual Query!!!!No I didn’t in the first place! But now I did. It seems to work…there are never more than 4 Posts at the time. But the problem in this case now is, when I Tag a Post with just 1 Term of a Taxonomy it will also just show me JUST ONE Related Post..you understand what I mean?? Mhhh
It would be awesome to still have “showposts” on 4 and also limit the maximal number of all posts together to 4 as well… Mhh
Forum: Fixing WordPress
In reply to: Limit a query to just 4 Posts, not very usual Query!!!!That Idea with the Break is super cool! But it does NOT work. I think this is not working, because this query is showing posts of every Term of the Taxonomy and the break also just works for every Term of the Taxonomy…so it does not breaking the whole thing after showing 4 Posts as a whole. Maybe it’s all because of the “FOREACH” thing there…isn’t it? I mean I do not understand it exactly…hope someone got more ideas.
Forum: Fixing WordPress
In reply to: Echo something if something else is there…Oke I understand this one but I have a bigger problem I think! That is my whole code where this question belongs to:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2><?php $subtitle = get_post_meta($post->ID, "Subtitle", true); echo $subtitle; ?> <div class="entry"> <!-- container for the slides --> <div class="images"> <div><?php $image1 = get_post_meta($post->ID, "Image1", true); echo $image2; ?></div> <div><?php $image2 = get_post_meta($post->ID, "Image2", true); echo $image2; ?></div> <div><?php $image3 = get_post_meta($post->ID, "Image3", true); echo $image3; ?></div> <div><?php $image4 = get_post_meta($post->ID, "Image4", true); echo $image4; ?></div> <div><?php $image5 = get_post_meta($post->ID, "Image5", true); echo $image5; ?></div> <div><?php $image6 = get_post_meta($post->ID, "Image6", true); echo $image6; ?></div> </div><!-- slider ENDE --> <div id="frontcover_controller"> <!-- "previous slide" button --> <a>prv</a> <!-- "next slide" button --> <a>nxt</a> <div class="slidetabs"> <a href="#"></a> <a href="#"></a> <a href="#"></a> <a href="#"></a> <a href="#"></a> <a href="#"></a> </div> </div><!-- frontcover_controller ENDE --> <script type="text/javascript"> // What is $(document).ready ? See: https://flowplayer.org/tools/documentation/basics.html#document_ready $(function() { $(".slidetabs").tabs(".images > div", { // enable "cross-fading" effect effect: 'fade', fadeOutSpeed: "slow", // start from the beginning after the last tab rotate: true // use the slideshow plugin. It accepts its own configuration }).slideshow({autoplay: true, autopause: true, clickable: false, interval: 10000}); }); </script>
So as you can see there are acutally 6 times the “Image”-Thing and for those are also exactly 6 times the “” there. If I do NOT Fill in some of the Image1-Image6 Fields in my posts it just doesnt show them, that’s oke! But the way it is now I still have 6 times the ““. But It should just be there as often as I fill in Image1-Image6 Fields in my Post…
Hope you understand me now better…How can I manage to do this???
Forum: Fixing WordPress
In reply to: Query posts using same taxonomy termGot same problem! Please help somebody. We need it ?? Thanks a lot!
Forum: Themes and Templates
In reply to: Custom Post Type and Taxonomy PermalinksIn my case it’s the same as Kevin described. Please help us!
Forum: Fixing WordPress
In reply to: Paged Loop with current taxonomies…Yeah! I’ve got further:
It seems to work like this:
[Code moderated as per the Forum Rules. Please use the pastebin]
But now when I click on page Number two (or more) it comes to an 404-Error. ??
Any suggestions?????
Forum: Fixing WordPress
In reply to: Custom Taxonomy – Related Posts QueryThe code from chris seems to belong in the function.php, right ? So it’s just there to make the “get_the_taxonomy” working, right?
If so, how is the code which I supposed to put in the taxonomy.php or single.php or whatever to get the posts of a category of a custom-taxonomy???
Forum: Fixing WordPress
In reply to: Special query for custom Post-Type…Difficult, please help!…and the next step:
When you name the SITE where this query is on exactly as the new custom-post-type it does NOT work. But if you give it another name it works. That’s kind of strange! Any new suggestions ???
Forum: Fixing WordPress
In reply to: Special query for custom Post-Type…Difficult, please help!Okay! The problem is with the permalinks. The pagination works on the first page, but when I click on “more” to see the older posts an error page comes up.
When I set the permalinks to “default” it seems to work fine. Then I’ll get to the right site and I see the other posts. Any suggestions how to solve that with the “clean” permalinks ????
Forum: Hacks
In reply to: Exclude special "Taxonomy" from a Custom Post Type…Yeah it can’t be impossible. Nobody know’s the answer, still ??? Ah the exact form of the question is:
“How to exclude a specific term of a custom taxonomy in a query?!”
Hey there! Now it works, yes! I had to use the 1.3-alpha2 Version of the Plugin. Thank you very much. But the one and biggest question is still how to EXCLUDE a specific term of a taxonomy in a query. Because this way I have to list ALL the Terms I want to have IN the query…that’s kind of dumb if I want to add a new term.
Would be soooo great if you have any idea how to solve that. Greatings from Germany,
joeybottle
Ahhh yeah! No I already understand what a term and a taxonomy is. But you’re right, I described my problem as I would confusing a term in a taxonomy with a taxonomy. I’m from Germany – it was a language-problem.
So I have a taxonomy named “workcat” with the two terms “design and frontcover”. (…and some more term)
How can I query just the posts with(in) these two Terms ???OR best solution would be: How can a filter-out posts with a specific Term ??????? That would be awesome to do! Thank you so much, greating from germany.
Forum: Hacks
In reply to: Exclude special "Taxonomy" from a Custom Post Type…It can’t be impossible! My PHP is not good enough to solve it by myself but here someone postet the posibilty how to show posts just from a specific Taxonomy, so it cant’t be impossible to do the opposite: (in this case form the Custom Post type “people” and with the posts which have the taxonomy “will-smith”:
<?php query_posts( array( ‘people’ => ‘will-smith’, ‘showposts’ => 10 ) ); ?>
I wish so hard that somebody will come across here who can solve it…