Hi
Ich habe mich nun entschieden, dass ich einfach alles runterlösche, und dann die neuste Version von Wordpress installiere. (Ich habe noch 2.7...)
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 erstellenHi
Ich habe mich nun entschieden, dass ich einfach alles runterlösche, und dann die neuste Version von Wordpress installiere. (Ich habe noch 2.7...)
Also, ich habe jetzt die Zeile mal in die wp-config.php eingefügt, jedoch hat sich gar nichts verändert.
Wenn ich das richtig verstehe, ist ja etwas mit dem Header nicht in der ordnung?
Nein, ich komme nicht rein. Wenn ich auf wp-login.php gehe, kommt zwar das anmelde fenster, aber wenn ich mich dann angemeldet habe, kommt nur dies:
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/cache.php on line 103
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/query.php on line 61
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/theme.php on line 1109
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-login.php on line 255
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-login.php on line 267
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-includes/pluggable.php on line 649
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-includes/pluggable.php on line 650
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-includes/pluggable.php on line 651
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-includes/pluggable.php on line 850
Alles anzeigen
Okay, danke. Nun kommen aber di Unterseiten noch immer nicht, das einzige, was angezeigt wird ist folgendes:
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/cache.php on line 103
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/query.php on line 61
Deprecated: Assigning the return value of new by reference is deprecated in /users/abblog/www/wp-includes/theme.php on line 1109
Warning: Cannot modify header information - headers already sent by (output started at /users/abblog/www/wp-includes/cache.php:103) in /users/abblog/www/wp-includes/pluggable.php on line 850
Hi
Ich komme ja nicht in den Admin Bereich hinein. Somit kann ich das Theme auch nicht verändern...
Jetzt habe ich auch noch bemerkt, dass alle Links nicht funktionieren. Wenn ich auf einen Link klicke, kommt noch die alte URL, wo die Seite aber nicht mehr liegt. Wie kann ich denn das noch ändern?
Hi
Ich habe meinen Wordpress-Blog nun auf einen neuen Webspace gelegt. Die wp-config.php, und die Datenbank habe ich angepasst nach dieser Anleitung:
http://webdemar.com/wordpress/umzu…s-installation/
Nun funktioniert alles, ausser einigen Fehlern...
In den admin bereich komme ich auch nicht..
Was muss ich noch machen?
Da im ersten Post nicht die ganze Style.css platz hatte, habe ich hier noch den rest.
.gallery img {
padding: 10px;
background: #eeeee9;
border: none!important;
}
h2.article-title {
margin: 0 0 10px;
line-height: normal;
color: #1f1f1f;
font-size: 26px;
letter-spacing: -1px;
}
h2.article-title a {
color: #1f1f1f;
text-decoration: none;
}
h2.article-title a:hover {
text-decoration: underline;
}
.article-meta {
margin: 0 0 10px 0;
}
.article-teaser {
font-weight: bold;
}
a.more-link {
display: block;
margin: 20px 0 30px 0;
}
h3.content-title {
margin: 0 0 10px 0;
color: #1f1f1f;
font-size: 16px;
font-weight: normal;
}
#author-single {
position: relative;
}
#author-single .avatar {
float: left;
width: auto;
margin: 0 20px 30px 0;
}
#page-bookmarks {
margin: 0px;
padding: 0px;
line-height: 22px;
border-bottom: 1px solid #eeeee9;
}
#page-bookmarks .box-left {
float: left;
width: 255px;
margin: 0 20px 0 0;
padding: 0 0 10px;
line-height: 22px;
border-bottom: none;
}
/* ##################################
PREDEFINED CLASSES
################################## */
.btn {
padding: 5px 10px 6px;
background: transparent url(img/bg-btn.png) no-repeat left top;
color: #fff;
font-weight: bold;
text-decoration: none;
}
.alert {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-alert.png) no-repeat 10px 10px;
}
.checked {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-checked.png) no-repeat 10px 10px;
}
.download {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-download.png) no-repeat 10px 10px;
}
.preview {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-preview.png) no-repeat 10px 10px;
}
.info {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-info.png) no-repeat 10px 10px;
}
.arrow {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-arrow.png) no-repeat 10px 10px;
}
.happy {
padding: 10px 10px 10px 60px;
line-height: 20px;
border: 1px dotted #eeeee9;
background: #fffad2 url(img/bg-class-happy.png) no-repeat 10px 10px;
}
/* ##################################
SIDEBAR
################################## */
h3.sidebar-title {
margin: 0 0 10px;
padding: 0px;
line-height: 16px;
color: #1f1f1f;
font-size: 16px;
font-weight: normal;
}
.ad-left {
float: left;
width: auto;
margin: 0 20px 20px 0;
}
.ad-right {
float: right;
width: auto;
margin: 0 0 20px;
}
#sidebar-twitter ul,
#recent-comments ul {
margin-left: 0px;
padding-left: 0px;
}
#sidebar-twitter li,
#recent-comments li {
list-style: none;
}
/* ##################################
FORMS
################################## */
#searchform {
margin: 0 0 20px;
}
.box-left #searchform {
width: 270px;
}
#search-text {
float: left;
width: 218px;
height: 22px;
padding: 6px 5px 0 5px;
background: transparent url(img/bg-input-text.gif) repeat-x left top;
border: 1px solid #eeeee9;
font-size: 11px;
}
#search-submit {
float: right;
width: auto;
height: 30px;
color: #fff;
background: transparent url(img/bg-input-submit.png) no-repeat left top;
border: none;
}
input.text, textarea {
width: 75%;
padding: 5px;
background: #fff url(img/bg-input-text.gif) repeat-x left top;
border: 1px solid #eeeee9;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 11px;
}
textarea {
width: 90%;
height: 125px;
}
input.submit, input.button {
width: auto;
height: 30px;
padding: 0 20px;
color: #fff;
background: transparent url(img/bg-input-submit.png) no-repeat left top;
border: none;
}
/* ##################################
COMMENTS
################################## */
#content .commentlist ol {
margin: 0px;
padding: 0px;
}
#content .commentlist li {
margin: 20px 0 0 0;
padding: 20px 0 20px 20px;
list-style: none;
}
#content .commentlist .box-left {
margin: 30px 0 0;
padding: 0px;
border: none;
}
.commentlist .avatar {
float: right;
width: auto;
margin: 0 0 5px 20px;
}
.commentlist li p {
margin: 0 20px 10px 0;
}
.commentlist .comment-author {
font-size: 12px;
font-weight: bold;
}
.commentlist .comment-author a {
padding: 0 0 5px 0;
border: none!important;
}
#content .commentlist ul.children {
margin: 0px;
padding: 0px;
}
#content .commentlist .children li {
margin: 20px 0 0 0;
padding: 20px 0 20px 20px;
background: none;
border-right: none;
}
.reply a {
margin: 10px 0 0 0;
padding: 5px 10px;
background: transparent url(img/bg-input-submit.png) repeat-x left top;
color: #fff;
border: none!important;
text-decoration: none;
}
#cancel-comment-reply {
margin: 10px 0;
}
#content .commentlist li.depth-1, #content .commentlist li.depth-3, #content .commentlist li.depth-5 {
background: #eeeee9 url(img/bg-comment-top.png) no-repeat left top;
}
#content .commentlist li.depth-2, #content .commentlist li.depth-4, #content .commentlist li.depth-6 {
background: #fff url(img/bg-comment-top-1.png) no-repeat left top;
border-right: 1px solid #ebebe1;
}
#content .commentlist li.depth-4, #content .commentlist li.depth-6 {
border: none;
}
.moderation {
padding: 0 0 0 25px;
background: transparent url(img/bg-moderation.png) no-repeat left center;
}
.trackbacklist {
margin: 30px 0 0;
padding: 30px 0 0;
border-top: 1px solid #eeeee9;
}
#content .trackbacklist ul {
margin: 0 0 20px;
}
#commentform {
padding: 0 0 10px 0;
}
#commentform p {
margin: 0 0 10px 0;
}
.box-comments {
position: relative;
padding: 0 0 30px;
}
.comments-paging {
position: absolute;
top: 0px;
right: 0px;
}
/* ##################################
PAGING
################################## */
#paging {
margin: 0 0 30px;
}
.wp-pagenavi .pages {
float: right;
width: auto;
}
.wp-pagenavi a, .wp-pagenavi .current {
display: block;
float: left;
width: auto;
min-width: 20px;
height: 20px;
line-height: 20px;
margin-right: 5px;
background: transparent url(img/bg-paging.png) no-repeat left top;
color: #fff;
font-weight: bold;
text-align: center;
text-decoration: none;
}
.wp-pagenavi .current {
background: transparent url(img/bg-paging-current.png) repeat-x left top;
}
/* ##################################
FLICKR BADGE
################################## */
#flickr_badge_uber_wrapper {
text-align:center;
}
#flickr_badge_wrapper {
padding: 0 0 5px 0;
}
.flickr_badge_image {
display: inline;
float: left;
width: auto;
margin:0 15px 15px 0;
}
/* ##################################
CLEARING
################################## */
.clear {
clear: both;
}
.clearfix:after {
content: " ";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display: inline-block;
}
html[xmlns] .clearfix {
display: block;
}
* html .clearfix {
height: 1%;
}
/* ##################################
WORDPRESS CSS
################################## */
.aligncenter,
div.aligncenter {
display: block;
margin: 0 auto;
}
.aligncenter {
margin-bottom: 20px!important;
}
.alignleft {
float: left;
width: auto;
margin: 0 20px 20px 0;
}
.alignright {
float: right;
width: auto;
margin: 0 0 20px 20px;
}
.wp-caption {
margin-bottom: 20px;
padding-top: 4px;
border: 1px solid #eeeee9;
text-align: center;
background-color: #f7f7f7;
}
.wp-caption img {
float: none;
margin: 0px;
padding: 0px;
border: none;
}
.wp-caption p.wp-caption-text {
padding: 0px;
margin: 0px;
}
/* ##################################
WIDGET CSS
################################## */
#calendar_wrap table {
width: 100%;
}
#calendar_wrap td, #calendar_wrap th {
text-align: center;
border: none;
}
#wp-calendar caption {
margin: 0 0 10px;
font-size: 12px;
font-weight: bold;
}
#content-right #tag_cloud {
padding: 0 0 30px;
line-height: normal;
}
#content-right .textwidget {
line-height: 22px;
padding-bottom: 20px;
}
#content-right select#cat {
margin-bottom: 20px;
}
Alles anzeigen
Hi
Ich möchte den Header in meinem Theme ändern. Nun habe ich jedoch keine Ahnung wie..
Im oberen Teil wird jetzt immer das erste Bild wiederholt. Nun möchte ich aber, dass das zweite auf die gesamte Breite angezeigt wird. Wie schaffe ich das? Was muss ich in der Style.css ändern?
/*
Theme Name: deStyle
Theme URI: http://demo.themeshift.com/destyle
Description: Blog Magazine WordPress Theme
Version: 0.9
Author: Simon Rimkus [ThemeShift]
Author URI: http://themeshift.com
Tags: blog, magazine, light, fresh
*/
/*
- GENERAL
- HTML ELEMENTS
- BASIC LAYOUT
- HEADER
- MENU
- CONTENT
- PREDEFINED CLASSES
- SIDEBAR
- FORMS
- COMMENTS
- PAGING
- FLICKR BADGE
- CLEARING
- WORDPRESS CSS
- WIDGET CSS
*/
/* ##################################
GENERAL
################################## */
body {
margin: 0px;
padding: 0px;
background: #000000 url(img/bg-body.jpg) repeat-x left top;
color: #4a4a4a;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 11px;
}
/* ##################################
HTML ELEMENTS
################################## */
a {
color: #7a3737;
}
img {
border: none;
}
p, ul, ol, dl {
line-height: 22px;
margin: 0 0 20px 0;
}
hr {
height: 1px;
margin: 20px 0;
background: #eeeee9;
border: none;
clear: both;
}
h1, h2, h3, h4, h5, h6 {
margin: 0 0 20px;
padding: 0px;
line-height: normal;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 16px;
}
h4, h5, h6 {
margin-bottom: 10px;
}
blockquote {
margin: 0 0 0 10px;
padding: 0 0 0 50px;
background: transparent url(img/bg-blockquote.png) no-repeat left top;
font-style: italic;
}
address {
padding: 0 0 0 15px;
font-style: italic;
}
pre {
display: block;
margin: 0 0 20px 0;
padding: 10px;
background: #eeeee9;
border: 1px solid #ccc;
font-family: "Courier New", Courier, serif;
overflow: auto;
}
code {
font-family: "Courier New", Courier, serif;
}
dt {
font-weight: bold;
}
table {
margin: 0 0 20px;
border-collapse: collapse;
}
th {
padding: 5px;
background: #eeeee9;
border: 1px solid #ddd;
text-align: left;
}
td {
padding: 5px;
border: 1px solid #ddd;
}
/* ##################################
BASIC LAYOUT
################################## */
#main {
width: 980px;
margin: 0 auto;
background: transparent url(img/bg-page.jpg) no-repeat 0px 40px;
}
#header {
position: relative;
width: 960px;
height: 140px;
margin: 0 auto;
}
#content-wrap {
padding: 20px 0 0;
background: transparent url(img/bg-content-wrap.png) repeat-y left top;
z-index: 1;
}
#content-top {
height: 20px;
background: transparent url(img/bg-content-top.png) no-repeat left bottom;
z-index: 2;
}
#content {
margin: 0 40px;
background: transparent url(img/bg-content.gif) repeat-y 600px 0px;
z-index: 3;
}
#footer {
position: relative;
padding: 0 0 30px 0;
line-height: 22px;
text-align: center;
}
/* ##################################
HEADER
################################## */
#page-menu {
position: absolute;
top: 0px;
left: 0px;
height: 40px;
line-height: 40px;
margin: 0px;
padding: 0px;
list-style: none;
}
#page-menu li {
float: left;
width: auto;
}
#page-menu a {
margin: 0 20px 0 0;
background: transparent;
color: #fff;
text-decoration: none;
}
#page-menu a:hover,
#page-menu .current_page_item a {
color: #f4dec7;
}
#rss {
position: absolute;
top: 0px;
right: 0px;
height: 40px;
margin: 0px;
padding: 0 30px 0 0;
line-height: normal;
background: transparent url(img/bg-rss.png) no-repeat right center;
color: #fff;
}
#rss a {
line-height: 40px;
background: transparent;
color: #fff;
border-bottom: 1px dotted #fff;
text-decoration: none;
}
h1#blog-title {
position: absolute;
bottom: 40px;
left: -10px;
margin: 0px;
padding: 0px;
color: #f4dec7;
font-size: 12px;
font-weight: normal;
}
h1#blog-title img {
margin: 0 0 -10px;
}
/* ##################################
MENU
################################## */
/** /lib/superfish/superfish.css */
/* ##################################
CONTENT
################################## */
#page-full #content {
background: #fff;
}
#content-bottom {
height: 20px;
background: transparent url(img/bg-content-bottom.png) repeat-y left top;
}
#content-left {
display: inline;
float: left;
width: 570px;
}
#content-right {
float: right;
width: 300px;
}
.box-left {
margin: 0 0 30px;
padding: 0 0 10px;
line-height: 22px;
border-bottom: 1px solid #eeeee9;
}
.box-right {
margin: 0 0 30px 30px;
padding: 0 0 10px;
border-bottom: 1px solid #eeeee9;
}
.box-full {
margin: 0px;
padding: 0 0 1px;
line-height: 22px;
}
#content ul, #content ol {
margin: 0 0 20px;
padding: 0 0 0 20px;
}
#content li {
padding: 2px 0;
list-style: disc;
}
#content ol li {
list-style: decimal;
}
#content li ul, #content li ol {
margin: -2px 0 -2px 20px;
padding: 0px;
}
#content li li {
list-style: circle;
background: none;
}
#content ol li li {
list-style: upper-roman;
}
#content li li li {
list-style: square;
}
#content ol li li li {
list-style: lower-latin;
}
h1.category-title {
margin: 0 0 30px;
padding: 0 0 10px;
color: #7a3737;
border-bottom: 1px solid #eeeee9;
}
.article-left {
position: relative;
float: left;
width: 220px;
margin: 0 0 20px 0;
z-index: 4;
}
.sticky-post {
position: absolute;
top: -10px;
left: -10px;
z-index: 100;
}
.article-right {
float: right;
width: 350px;
}
img.article-img {
padding: 10px;
background: #eeeee9;
}
img.article-img-single,
.box-author img.avatar {
float: left;
margin: 0 20px 20px 0;
padding: 10px;
background: #eeeee9;
}
a:hover img.article-img {
background: #deded9;
}
.img-caption {
padding: 0 10px;
height: 30px;
line-height: 30px;
background: transparent url(img/bg-img-caption.png) no-repeat left top;
color: #fff;
font-weight: bold;
}
.img-caption a {
background: transparent;
color: #fff;
text-decoration: none;
}
img.shadow {
background: transparent url(img/shadow.gif) no-repeat right bottom;
padding: 5px 10px 10px 5px;
}
Alles anzeigen
Hey, vielen vielen Dank!! :-D
Alleine hätte ich das nicht hingekriegt. Aber jetzt stimmt alles!
Vielleicht lässt sich auch das Problem der Werbung noch lösen, die da immer ins Bild rutscht?
Aber das scheint etwas vom Hoster zu sein, da kann man nichts machen, oder?
Ich glaube, das ist je eine Zeile. Das rote ist das, was ich geändert habe.
index.php
[COLOR="red"]<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image_value", true); ?>[/COLOR]" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a><?php else : ?><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/img/default.jpg" class="article-img" alt="<?php the_title(); ?>" width="180" height="180"/></a><?php endif; ?><div class="img-caption"><?php comments_popup_link(__('0 comments','destyle'), __('1 comment','destyle'), __('% comments','destyle'),'',__('Comments off','destyle')); ?></div>
archive.php
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="[COLOR="Red"]<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image_value", true); ?>" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a>[/COLOR]" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a><?php else : ?><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/img/default.jpg" class="article-img" alt="<?php the_title(); ?>" width="180" height="180"/></a><?php endif; ?><div class="img-caption"><?php comments_popup_link(__('0 comments','destyle'), __('1 comment','destyle'), __('% comments','destyle'),'',__('Comments off','destyle')); ?></div>
Vielen Dank! Jetzt stimmt fast alles. Der Text ist wieder neben den bildern. Jezt hat es einfach noch einen komischen kasten..:confused:
Ok, die Bilder werden angezeigt. Nur ist jetz der Titel des Artikels nicht mehr neben sondern erst unter dem bild..
eine category.php habe ich nicht gefunden, aber eine archive.php
<?php get_header(); ?>
<div id="content-left">
<?php if (have_posts()) : ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1 class="category-title"><?php single_cat_title(); ?></h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1 class="category-title"><?php single_tag_title(); ?></h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1 class="category-title"><?php _e('Archive','destyle'); ?> <?php the_time(get_option('date_format')); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1 class="category-title"><?php _e('Archive','destyle'); ?> <?php the_time('F Y'); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1 class="category-title"><?php _e('Archive','destyle'); ?> <?php the_time('Y'); ?></h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1 class="category-title"><?php _e('Archive','destyle'); ?></h1>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php if(function_exists('post_class')) : post_class(); else : echo 'class="post"'; endif; ?>>
<div class="box-left clearfix">
<div class="article-left clearfix">
<?php if(get_post_meta($post->ID, "image_value", true)) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/lib/thumb.php?src=<?php echo get_post_meta($post->ID, "image_value", true); ?>&w=180&h=180&zc=1&q=95" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a><?php else : ?><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/img/default.jpg" class="article-img" alt="<?php the_title(); ?>" width="180" height="180"/></a><?php endif; ?><div class="img-caption"><?php comments_popup_link(__('0 comments','destyle'), __('1 comment','destyle'), __('% comments','destyle'),'',__('Comments off','destyle')); ?></div>
<?php if(is_sticky() && !get_option('destyle_sticky_dsp')) : ?>
<div class="sticky-post"><img src="<?php bloginfo('template_url'); ?>/img/sticky.png" alt="sticky" width="50" height="50"/></div>
<?php endif; ?>
</div>
<div class="article-right">
<h2 class="article-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="article-meta"><?php the_time(get_option('date_format')); ?> <?php _e('in','destyle'); ?> <?php the_category(', '); ?></div>
<?php the_content(__('Read more...','destyle')); ?>
</div>
</div>
</div><!-- end box-left -->
<?php endwhile; ?>
<?php global $wp_query; if($wp_query->max_num_pages > 1) : ?>
<div id="paging" class="clearfix">
<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else: ?>
<div style="float:left">
<?php next_posts_link(__('« Previous entries','degusto')); ?>
</div>
<div style="float:right">
<?php previous_posts_link(__('Next entries »','degusto')); ?>
</div>
<?php endif; ?>
</div><!-- end paging -->
<?php endif; ?>
<?php else : ?>
<div class="box-left">
<h2 class="article-title"><?php _e('Not found!','destyle'); ?></h2>
<p><?php _e('Sorry, no posts matched your criteria.','destyle'); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
</div><!-- end content-left -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Hi
Ich habe dieses Stück in der index.php
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/lib/thumb.php?src=<?php echo get_post_meta($post->ID, "image_value", true); ?>&w=180&h=180&zc=1&q=95" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a>
durch dieses ersetzt:
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image_value", true); ?>" class="article-img" width="180" height="180" alt="<?php the_title(); ?>" /></a>
was muss ich nun in der Single.php verändern?
Die Anzeigebilder werden in den Beiträgen, und in den einzelnen Kategorien nicht angezeigt.
Die Single.php:
<?php get_header(); ?>
<div id="content-left">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="box-left clearfix">
<?php if(get_post_meta($post->ID, "image_value", true)) : ?>
<img src="<?php bloginfo('template_url'); ?>/lib/thumb.php?src=<?php echo get_post_meta($post->ID, "image_value", true); ?>&w=180&h=180&zc=1&q=95" class="article-img-single" width="180" height="180" alt="<?php the_title(); ?>" />
<?php else : ?>
<img src="<?php bloginfo('template_url'); ?>/img/default.jpg" class="article-img-single" alt="<?php the_title(); ?>" width="180" height="180"/>
<?php endif; ?>
<h2 class="article-title"><?php the_title(); ?></h2>
<div class="article-meta"><?php the_date(); ?> <?php _e('in'); ?> <?php the_category(', '); ?></div>
<div class="article-teaser"><?php $more = 0; the_content(''); ?></div>
<?php after_more_content($post->post_content); ?>
<?php the_tags('<p class="tags">'.__('Tags','destyle').': ', ', ', '</p>'); ?>
<?php edit_post_link(__('Edit Post','destyle'), '<p>', '</p>'); ?>
</div>
<?php if(!get_option('destyle_auth_dsp')) : ?>
<div class="box-left box-author clearfix">
<?php echo get_avatar(get_the_author_email(), '100'); ?>
<h3><?php the_author_posts_link(); ?></h3>
<p><?php the_author_description(); ?></p>
</div>
<?php endif; ?>
<?php comments_template('', true); ?>
<?php endwhile; ?>
<?php else : ?>
<div class="box-left">
<h2 class="article-title"><?php _e('Not found!','destyle'); ?></h2>
<p><?php _e('Sorry, no posts matched your criteria.','destyle'); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
</div><!-- end content-left -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Ja bei der index.php hast du mir doch die zwei Codes gegeben. Den Originalen und den geänderten, dann musste ich das nur noch ersetzen. Aber sonst habe ich keine Ahnung :(
Kann denn niemand helfen?
Danke für die Info. Leider kenne ich mich viel zu wenig aus mit diesen Dingen, dass ich da irgendeine Chance hätte, das hinzukriegen. Falls jemand zeit und Lust hat, dies zu tun, wäre mir das eine grosse Hilfe.
Hier nochmals der Link zum Theme.
Aber dann bedeutet das, dass ich für jeden Beitrag noch etwas in den Templates nachbessern muss?
Hm, ich habe jetzt gerade gemerkt, dass das Problem nur halb gelöst ist. Die Bilder werden nur auf der Startseite angezeigt. Wenn ich auf einen Beitrag klicke, oder in eine Kategorie reingehe, sind noch immer diese Fragezeichen.
Muss ich denn nun bei jedem Beitrag irgendwas verändern in der index.php?
Nur aus Interesse (und fürs Archiv): Welcher der Tipps war der goldenen? :)
Ich kopierte den neuen Code in die Index.php. Dann hats geklappt.
Hey, vielen Dank!! :-D
Es hat geklappt, jetzt werden alle Bilder angezeigt!
Herzlichen Dank!