Filia Libri
Forum Replies Created
-
Thanks ??
I just noticed that one of the preinstalled themes has multiple posts in a row… Guess I could have saved myself a lot of frustation if I had noticed that earlier ^^
I’m now using
<table> <tbody> <tr> <?php for ($i=0; $i<2; $i++) { $post = $posts[$i]; setup_postdata($post); ?><td>...</td><?php } ?> </tr> <tr> <?php for ($i=2; $i<4; $i++) { $post = $posts[$i]; setup_postdata($post); ?><td>...</td><?php } ?> </tr> <tr> <?php for ($i=4; $i<6; $i++) { $post = $posts[$i]; setup_postdata($post); ?><td>...</td><?php } ?> </tr> </tbody> </table>
and it’s working perfectly ^^
Forum: Themes and Templates
In reply to: Problem with custom navigation menuThere is no link to the problem since I’m not working online…
Do you need to be able to click on the menu or do you just need the source code?Forum: Fixing WordPress
In reply to: Sidebar gets pushed below contentAlright, found the problem >.<
Forgot to include the float-attribute for #content in the stylesheet…Forum: Themes and Templates
In reply to: How to remove indention in front of lists?Ouch… Moving to the website somehow didn’t do any good to the theme… It didn’t show any css-errors while I worked on it on the test server ??
Now it’s like one massiv collection of errors… I knew I don’t have any talent for thisForum: Themes and Templates
In reply to: How to remove indention in front of lists?This is my site:
https://anima-libri.deForum: Themes and Templates
In reply to: Individual design for single posts in different categoriesOh, I got it ??
This seems to work just fine:<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="single-reviewpost"> <?php if ( query_posts($query_string . '&cat=348, 347, 353, 408, 296, 215') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'review' ); ?> </div><div id="single-newspost"> <?php } else if ( query_posts($query_string . '&cat=540') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> </div><div id="single-blogpost"> <?php } else if ( query_posts($query_string . '&cat=-540, -348, -347, -353, -408, -296, -215') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'blog' ); ?> </div><?php } ?> <?php endwhile; endif; ?>
I’m sure there are more elegant ways to do this but I’m happy that I got it to work out at all so for now I’m happy with this ??
Forum: Themes and Templates
In reply to: Individual design for single posts in different categoriesWon’t work:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="single-reviewpost"> <?php if ( is_category('&cat=348, 347, 353, 408, 296, 215') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'review' ); ?> </div><div id="single-newspost"> <?php } else if ( is_category('&cat=540') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> </div><div id="single-blogpost"> <?php } else if ( is_category('&cat=-540, -348, -347, -353, -408, -296, -215') ) { ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'blog' ); ?> </div><?php } ?> <?php endwhile; endif; ?>
Won’t work either:
<div id="single-reviewpost"> <?php if ( is_category('&cat=348, 347, 353, 408, 296, 215') ) { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'review' ); ?> <?php endwhile; endif; ?> </div><div id="single-newspost"> <?php } else if ( is_category('&cat=540') ) { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php endwhile; endif; ?> </div><div id="single-blogpost"> <?php } else if ( is_category('&cat=-540, -348, -347, -353, -408, -296, -215') ) { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'loop-single', 'single' ); ?> <?php get_sidebar( 'blog' ); ?> <?php endwhile; endif; ?> </div><?php } endif; ?>
Both won’t show any errors but will simply display nothing…
Most likely what I tried isn’t even possbile but I don’t have a clue…Forum: Themes and Templates
In reply to: Individual design for single posts in different categoriesYeah, that’s what I tried… I edited the single.php but it didn’t work. I didn’t even try to do it with three different ifs (which I would need) because two already turned out impossible and didn’t show anything but fatal errors and script time outs ??
Forum: Fixing WordPress
In reply to: Media Upload impossibleJust loaded version 3.3 and now there comes this:
Warning: copy(/…/…/…/…/wp-content/uploads/2012/01/….jpg) [function.copy]: failed to open stream: Permission denied in /…/…/…/…/wp-admin/includes/file.php on line 348
2373But what’s the needed permission setting on file.php??? It’s set on 775 at the moment, so I really don’t now why WP gets this “permission denied” error…
Forum: Fixing WordPress
In reply to: Recover TrashbinSorry, I didn’t want to be mean, I’m just completly annoyed and frustrated by my own stupidity because I didn’t think of making a backup after I transferred the posts to the new blog nor of using a friends PC to restore the posts befor the 30 days were over…
Forum: Fixing WordPress
In reply to: Recover TrashbinRight, if I had a backup there would be no problem but then again if I had one would I have asked this question? Most likely not, so the problem’s still there: No posts in the trashbin, no backup, no nothing, just frustration at over 100 lost posts…