Kan je de code die in je single.php staat hier plaatsen? dan kunnen we zien of daar iets fouts/dubbel in staat
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header();
?>
<?php get_sidebar(’top’); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous posts when applicable */
if (theme_get_option(’theme_top_single_navigation’)) {
theme_post_navigation(
array(
‘prev_link’ => theme_get_previous_post_link(‘« %link’),
‘next_link’ => theme_get_next_post_link(‘%link »’)
)
);
}
while (have_posts()) {
the_post();
get_template_part(‘content’, ‘single’);
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option(’theme_bottom_single_navigation’)) {
theme_post_navigation(
array(
‘prev_link’ => theme_get_previous_post_link(‘« %link’),
‘next_link’ => theme_get_next_post_link(‘%link »’)
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar(‘bottom’); ?>
<?php get_footer(); ?>
Zo ziet bijvoorbeeld nu mijn post eruit. Met dubbele foto’s!
http://photoboot.clickwebdesign.nl/zonsondergang/
Zou je de code kunnen vervangen door het volgende? (maak wel eerst een kopie van het huidige bestand!)
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header();
?>
<?php get_sidebar('top'); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_post_navigation(
array(
'prev_link' => theme_get_previous_post_link('« %link'),
'next_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts()) {
//the_post();
get_template_part('content', 'single');
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_post_navigation(
array(
'prev_link' => theme_get_previous_post_link('« %link'),
'next_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>
Als ik dat toepas krijg ik een blanco wit beeld.
Wat doe ik nu verkeerd? Is dit echt het resultaat van dat ene regeltje?
Kan ik niet beter de database van wordpress resetten?
Moet ik nog misschien een andere php pagina aanpassen?
Probeer het volgende eens?
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header();
?>
<?php get_sidebar('top'); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_post_navigation(
array(
'prev_link' => theme_get_previous_post_link('« %link'),
'next_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts()) {
the_post();
//get_template_part('content', 'single');
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_post_navigation(
array(
'prev_link' => theme_get_previous_post_link('« %link'),
'next_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>
Ik heb twee //
voor een regel gezet, als je weer een wit beeld krijgt en vervolgens die weghaalt en je nog steeds een wit beeld hebt staat er ergens een spatie teveel aan het eind van een regel.
Ik heb wel mijn webpagina, maar nu zie ik de posts niet staan.
Hallo,
Ik heb mijn probleem opgelost. Zie resultaat. http://photoboot.clickwebdesign.nl
Bedankt voor je hulp!
Groet,
Marcel Nooijen