smijos
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Eleven] How can I show the sidebar on single posts?Editing / removing the “singular” classes isn’t enough.
Your comment list and form width get squished. To fix that, change this in your style.css (search for these exact values and change just the items I’ve edited, or just paste this at the very bottom of the stylesheet):
#respond { width: auto; } .commentlist { width: auto; } .commentlist > li.comment { margin: 0px 0px 20px 102px; width: auto; }
Forum: Fixing WordPress
In reply to: Permalink Structure Problemthanks for the reply – i do appreciate it – but it’s not relevant
For example, if I followed the advice of your link, I could use a structure like
/%post_id%/%postname%/
– then my browser would fail to load my /images folder because it thinks it is operating from an imaginary/%post_id%/
directory and not the rootForum: Fixing WordPress
In reply to: Can’t create categorythis topic should be set to resolved
Forum: Fixing WordPress
In reply to: Can’t create categoryIt’s the www. I had domain.com in both urls, but my crappy setup adds the www to the address bar when I login and so I had to remove it manually after login.
Forum: Fixing WordPress
In reply to: This form accidentally HACKS WordPress – HELP!Okay, I’ll give it a whirl
Forum: Fixing WordPress
In reply to: This form accidentally HACKS WordPress – HELP!okay, I turned it off…but it still puts in an extra
</p>
here and therestill need help with that form…
Forum: Fixing WordPress
In reply to: This form accidentally HACKS WordPress – HELP!Why on earth do I need this…
Well, I’m using wordpress just to build a normal site (total non-blogish). Makes it really easy for multiple users to update their stuff, since they just use the WP panel to edit their content.Anyway, on one of my “posts” I need people to submit info that gets routed to an email. Oh, another really wierd thing – after I save my changes with this form, it cuts everything in half below “save and contine, save, publish” all the way down to “delete this post.” Literally, in the upload section, the right half is missing (the half directly below the save/publish buttons.)
Lastly – the editor keeps exchanging my normal paragraphs with plain text and then
<p> </p>
afterward. Then when I publish it comes out with ONLY</p>
at the end of each paragraph. Firefox doesn’t like that (neither does W3C)Forum: Fixing WordPress
In reply to: This form accidentally HACKS WordPress – HELP!okay…I’m sure I can delete them somehow –
Anyone had luck posting a form like this in a wordpress post?Forum: Fixing WordPress
In reply to: A CHALLENGE – Future Timestamp PostsKafkaesqui – you are scary brilliant! THANK YOU
This is a VERY COOL little piece of code.
I’m posting the final working version below<?php
$cat_id = 16;
$postlimit = -1;
$now = current_time(‘mysql’);
$future_posts = $wpdb->get_results(“SELECT * FROM $wpdb->posts, $wpdb->post2cat WHERE category_id = ‘$cat_id’ AND post_id = ID AND post_date > ‘$now’ LIMIT $postlimit”);
if($future_posts) : foreach($future_posts as $post) : setup_postdata($post);
?><– the affectionately termed, “do stuff” –>
<?php endforeach; else: ?>
<?php endif; ?>Forum: Fixing WordPress
In reply to: get_posts WILL NOT WORK for CHILDREN! DAAGH!AH! I did not know that about the_date. Needless to say, your solution works perfectly!
yeah, I realized what you had done with the <php> tags about 5 seconds after I posted…oops…
Anyway, THANKS VERY MUCH – now if I can just get it to work with the future dates ie my other post…
Forum: Fixing WordPress
In reply to: A CHALLENGE – Future Timestamp Postswhoa…this is getting beyond me fast…
I don’t know a lot about category_template’s but just one question – this little upcoming events thing is on my index.php.
Will your solution still work? Or would it only work on that category’s page?
Forum: Fixing WordPress
In reply to: get_posts WILL NOT WORK for CHILDREN! DAAGH!Secondly, the_date still doesn’t work with the following loop (only shows the date for the first post)
<?php query_posts(‘cat=16’); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<– do stuff –>
<?php endwhile; ?>
<?php endif; ?>I set it up that way because the codex says to use query_post outside the loop – is there another way?
(the_title and the_excerpt work fine for all posts)Forum: Fixing WordPress
In reply to: get_posts WILL NOT WORK for CHILDREN! DAAGH!Okay first off the error I got was because I had selected ONLY a child category for the post and not a parent as well.
So get_posts, and query_post both seem to be working now with child categories.
Forum: Fixing WordPress
In reply to: A CHALLENGE – Future Timestamp Postsdarn – no way w/out a plugin eh? ah well…
Forum: Fixing WordPress
In reply to: get_posts WILL NOT WORK for CHILDREN! DAAGH!the_title STILL only works for the first post, though