hab jetzt die Zeile durch
query_posts("cat=$category_id&category_name=International&showposts=$limit&paged=$paged");
ersetzt.
scheint zu funktionieren. Jemand Einwände? ist das nicht gut? Ich bin relativ neu auf dem Wordpress Gebiet..
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenhab jetzt die Zeile durch
query_posts("cat=$category_id&category_name=International&showposts=$limit&paged=$paged");
ersetzt.
scheint zu funktionieren. Jemand Einwände? ist das nicht gut? Ich bin relativ neu auf dem Wordpress Gebiet..
;-) danke trotzdem schon mal super doll für die hilfe.. ich versuch mal das international und das paged zusammenzubauen :-)
das mit dem Umsetzen des
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
vor den loop hat leider keine Änderung gebracht.
ok.. der code stammt nicht von mir kannst du mir empfehlen wie ich es ändern müsste?
Danke schonmal für deine Hilfe!
und so gehts weiter
<?php if(get_post_meta($post->ID, "thumb_one", true) != "" or get_post_meta($post->ID, "video_one", true) != ""){ ?>
<!-- begin box image -->
<div class="portfolio_image_skin2">
<div class="inside_border">
<!-- begin image -->
<div class="portfolio_box_anime">
<?php if(get_post_meta($post->ID, "video_one", true) != ""){ ?>
<?php echo get_post_meta($post->ID, "video_one", true); ?>
<?php } else { ?>
<?php if(get_post_meta($post->ID, "big_one", true) != ""){ ?>
<a href="<?php echo get_post_meta($post->ID, "big_one", true); ?>" rel="prettyPhoto[canyon_gallery]">
<?php } ?>
<img src="<?php echo get_post_meta($post->ID, "thumb_one", true); ?>" width="<?php echo get_option('blog_thumb_width', '620'); ?>" height="<?php echo get_option('blog_thumb_height', '200'); ?>" alt=""/>
<?php if(get_post_meta($post->ID, "big_one", true) != ""){ ?>
<span class="portfolio_zoom" style="padding-top:<?php echo $padtop; ?>px; padding-left:<?php echo $padleft; ?>px;"><img src="<?php bloginfo('template_url'); ?>/images/zoom.png" alt="" /></span>
</a>
<?php } } ?>
</div>
<!-- end image -->
</div>
</div>
<!-- begin box image -->
<?php } ?>
<div class="cleardiv"></div>
<!-- begin box details -->
<div class="portfolio_details_with_categories_skin_2">
<!-- begin box title -->
<div class="portfolio_title">
<div class="custom_title" ><?php the_title(); ?></div>
</div>
<!-- end box title -->
<!-- begin detail text -->
<div class="portfolio_text"><?php echo get_post_meta($post->ID, "short_desc", true); ?>
<div class="portfolio_details_button"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><span class="details_button"><?php echo get_option('blog_details_title', 'DETAILS'); ?></span></a></div>
</div>
<!-- begin detail text -->
</div>
<!-- end box details -->
</div>
<!-- end box 1 -->
<?php if($i == $culomns){ echo '</div><div class="portfolio_box_container clearfix">'; $i =0; } $i++; ?>
<?php endwhile; endif; ?>
</div>
<!-- end portfolio container 1 -->
<div class="cleardiv"></div>
<!-- begin pages numbers -->
<div class="pages_numbers">
<?php include (TEMPLATEPATH . '/includes/get_pagination.php'); ?>
</div>
<!-- end pages numbers -->
</div>
<!-- end portfolio container -->
</div>
<!-- end content widt categories -->
</div>
<!-- end page content -->
</div>
<!-- end container text -->
<?php get_footer(); ?>
Alles anzeigen
ok hier die ganze Seite (Teil 1):
<?php get_header(); ?>
<!-- begin container text -->
<div class="container_text">
<!-- begin page short cut -->
<div class="page_shortcut">
<?php include (TEMPLATEPATH . '/includes/get_shortcut.php'); ?>
</div>
<!-- end page short cut -->
<!-- begin page title container -->
<div class="page_title_container">
<!-- begin page title -->
<div class="page_title">
<div class="custom_title"><?php the_title(); ?> </div>
</div>
<!-- end page title -->
</div>
<!-- end page title container -->
<div class="page_line"></div>
<!-- begin page content -->
<div class="page_container">
<!-- begin page navigation -->
<div id="cufon_ul" class="page_navigation_container">
<?php
wp_reset_query();
if($post->post_parent) {
$children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
} else {
$children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0");
}
if ($children) {
?>
<!-- begin navigation title -->
<div class="page_navigation_title">
<h1><?php echo get_option('navigation_title', 'Navigation'); ?></h1>
</div>
<!-- end navigation title -->
<!-- begin navigation categories -->
<?php
if($children){
echo "<ul>";
echo $children;
echo "</ul>";
}
?>
<!-- begin navigation categories -->
<?php } ?>
<!-- begin custom navigation -->
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Blog Widget 1')) ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Right Widget 1 (All of Pages)')) ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Right Widget 2 (All of Pages)')) ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Right Widget 3 (All of Pages)')) ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Right Widget 4 (All of Pages)')) ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Right Widget 5 (All of Pages)')) ?>
<!-- begin custom navigation -->
</div>
<!-- begin page navigation -->
<!-- begin content widt categories -->
<div id="attachment_67" class="wp-caption alignnone" style="width: 910px"><a href="http://www.sabinewinter.com/wp-content/uploads/2010/04/Sabine-International1.jpg"><img class="size-full wp-image-67" title="Sabine Winter International" src="http://www.sabinewinter.com/wp-content/uploads/2010/04/Sabine-International1.jpg" alt="Sabine Winter International" width="900" height="300" /></a><p class="wp-caption-text">Sabine Winter International</p></div>
<div class="page_content_with_categories">
<!-- begin portfolio container -->
<div class="portfolio_container">
<!-- begin portfolio container 1 -->
<div class="portfolio_box_container clearfix">
<?php if(have_posts()) : ?>
<?php
$category_id = get_post_meta($post->ID, "page_id", true);
$limit = get_option('blog_limit', 10);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=$category_id&showposts=$limit&paged=$paged");
$i = 1;
$culomns = get_option('blog_columns', '1');
$padtop = get_option('blog_thumb_height', '200')/2 - 28;
$padleft = get_option('blog_thumb_width', '620')/2 - 37;
?>
<?php query_posts('category_name=International'); ?>
<?php while(have_posts()) : the_post();
?>
<!-- begin box 1 -->
<div class="blog_box_skin_3" <?php if($i == $culomns){ echo 'style="padding-right:0;"'; } ?>>
<div class="blog_titles">
<div class="blog_info"><?php the_time('F jS, Y') ?> by <?php the_author() ?><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?></div>
<div class="blog_comments">
<?php comments_popup_link(get_option('cf_no_comments', 'No Comments').'»', get_option('cf_one_comment', 'One Comment').' »', '% '.get_option('cf_one_comments', 'Comments').' »', 'commentslink', get_option('cf_off_comments', 'Comments Off')); ?>
</div>
</div>
Alles anzeigen
Hallo alle zusammen bei mir klappt das pagen auf Sieten irgendwie nicht? Ich lade die Posts auf den Seiten wie folgt:
<?php if(have_posts()) : ?>
<?php
$category_id = get_post_meta($post->ID, "page_id", true);
$limit = get_option('blog_limit', 10);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=$category_id&showposts=$limit&paged=$paged");
$i = 1;
$culomns = get_option('blog_columns', '1');
$padtop = get_option('blog_thumb_height', '200')/2 - 28;
$padleft = get_option('blog_thumb_width', '620')/2 - 37;
?>
<?php query_posts('category_name=International'); ?>
<?php while(have_posts()) : the_post();
?>
Alles anzeigen
Irgendjemand ne Idee?
hier der Link zur Seite falls es relevant ist: http://www.sabinewinter.com/international/
Merci!!!
Hallo nochmal,
noch eine Frage.
Wir nutzen Wordpress 3.0 und sind mit dem Upgrade auf 3.0 auf einen neuen Server umgezogen. Jetzt bekommen wir beim einstellen von Bildern (UPLOAD) die Fehlermeldung "SICHERHEITSFEHLER" bzw. "SECURITY ERROR" in rot.
Kennt das jemand? Ich hab mal gegooglet: Fehler in alten Versionen gab es die hingen aber entweder mit fehlenden schreibrechten (777) oder mit PHP_savemode = on zusammen. Beide Probleme bestehen bei uns nicht.
Hat jemand ne Idee?
Achso es geht um diesen Blog: http://www.twago.de/blog
[Geändert - Ich weiß gar nicht warum ich das eigentlich auf engl. gepostet habe hier die deutsche Version:]
German (for english see below)
Hallo alle zusammen,
erst einmal Danke dass Ihr so lieb seid mein Problem anzuschauen.
Ich betreibe einen WP Blog auf einem dedicated server. dieser wird von unserem load balancer (nginx) per proxy_pass aufgerufen. Mein Problem ist dass ich gerne allen Statischen Content direkt vom NginX ausliefern lassen möchte. Nicht aber den Content vom Blog, da dieser sich ja ständig ändert. Wie kann ich bloß dem NGINX sagen dass er zwar alle statischen Dateien ausliefern muss aber nicht wenn der blog aufgerufen wurde ("/blog/" in der URL) Unten meine NGINX Config.
English:
Hello all,
first of all thanks for looking into this. I have the following problem.
Wordpress is running on a dedicated server only for wordpress out application is running on other application servers. to handle the load we have also a load balancer working. To deliver the load as fast as possible we deliver static content directly via the lb (nginx). Here my question:
1) the load balancer gets the request
2a) if its static conent is delivers it directly
2b) if its application relevant it forwards the request to the tomcats on the application servers
2c) if its blog content (location /blog) nginx get the blog information via proxy pass from the dedicated blog server.
My Problem is now that in case of 2c) i dont want to deliver the static content from the load balancer directly (because its not there).. for all /blog/ content nginx should get ALL data via proxy_pass from wordpress..
Any ideas?
here is my current server configuration for nginx (that is not working for /blog/ :) :
if ($request_uri ~* "/blog/") {
location ~* ^.+.(jpg|jpeg|gif|png|ico|zip|tgz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off;
expires max;
root /var/www/static;
}
location ~* ^.+.(css|txt|js)$ {
access_log off;
expires 15d;
root /var/www/static;
}
}
location /blog/ {
# If logged in, don't cache.
if ($http_cookie ~* "comment_author_|wordpress_(?!test_cookie)|wp-postpass_" ) {
set $do_not_cache 1;
}
proxy_cache_key "$scheme://$host$request_uri $do_not_cache";
proxy_pass_header Set-Cookie;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter_once off;
sub_filter 'subdomainForBlog' 'MainDomain/blog';
proxy_pass http://subdomainForBlog;
}
Alles anzeigen