Affichage d'article au complet dans catégorie sous Wordpress

Petit nouveau ! | 6 Messages

26 mars 2013, 11:28

Bonjour,

Ma configuration WP actuelle
- Version de WordPress : la dernière
- Version de PHP/MySQL : je ne sais plus
- Thème utilisé : buddymatic


Problème(s) rencontré(s) :
Bonjour,

Je cherche à pouvoir intégrer l'ensemble contenue d'un articles dans chaque catégorie, par default le thème buddymatic n’intègre que le titre et le texte mais pas les images. http://quentinsaunier.com/news/category/news/

Mon futur site, sera principalement pour l'affichage d'image, c'est problématique.
J'ai essayé différente choses mais rien ne marche. Je suis un peu perdu . HELP HELP !

Il semblerait qu'il faut modifier quelque choses dans ces texte :

merci beaucoup.

Petit nouveau ! | 6 Messages

26 mars 2013, 11:28

<?php
/*
Template Name: Archives Page
*/
?>
<?php

// calling the header.php
get_header();

// action hook for placing content above #container
thematic_abovecontainer();

?>
<div id="container">
<div id="content">

<?php

the_post();

?>

<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">

<?php

// creating the post header
thematic_postheader();

?>

<div class="entry-content">

<?php

the_content();

// action hook for the 404 content
thematic_archives();

edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>');

?>

</div>
</div><!-- .post -->

<?php

if ( get_post_custom_values('comments') )
comments_template(); // Add a key/value of "comments" to enable comments on pages!

?>

</div><!-- #content -->
</div><!-- #container -->

<?php

// action hook for placing content below #container
thematic_belowcontainer();

// calling the standard sidebar
thematic_sidebar();

// calling footer.php
get_footer();

?>
ou
<?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_activity_loop() */ ?>

<?php do_action( 'bp_before_activity_loop' ) ?>

<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>

<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
<noscript>
<div class="pagination">
<div class="pag-count"><?php bp_activity_pagination_count() ?></div>
<div class="pagination-links"><?php bp_activity_pagination_links() ?></div>
</div>
</noscript>

<?php if ( empty( $_POST['page'] ) ) : ?>
<ul id="activity-stream" class="activity-list item-list">
<?php endif; ?>

<?php while ( bp_activities() ) : bp_the_activity(); ?>

<?php include( locate_template( array( 'activity/entry.php' ), false ) ) ?>

<?php endwhile; ?>

<?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>
<li class="load-more">
<a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a> &nbsp; <span class="ajax-loader"></span>
</li>
<?php endif; ?>

<?php if ( empty( $_POST['page'] ) ) : ?>
</ul>
<?php endif; ?>

<?php else : ?>
<div id="message" class="info">
<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>

<?php do_action( 'bp_after_activity_loop' ) ?>

<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
</form>

Eléphant du PHP | 343 Messages

26 mars 2013, 16:47

Que donne single.php? Surtout ce qu'il y a dans ton <div class="entry-content">?
D’après le code, il semblerait que ce soit the_content qui a été hooké (j'attends de voir la suite avant de continuer de supposer :D).
Développeur web

Petit nouveau ! | 6 Messages

27 mars 2013, 11:46

Coool une personnes qui me repond :) j'ai envoyé le même problème à différent forum.

Alors j'ai trouvé de code single.php

le premiere :
<?php

// calling the header.php
get_header();

// action hook for placing content above #container
thematic_abovecontainer();

?>

<div id="container">
<div id="content">

<?php

the_post();

// create the navigation above the content
thematic_navigation_above();

// calling the widget area 'single-top'
get_sidebar('single-top');

// action hook creating the single post
thematic_singlepost();

// calling the widget area 'single-insert'
get_sidebar('single-insert');

// create the navigation below the content
thematic_navigation_below();

// calling the comments template
thematic_comments_template();

// calling the widget area 'single-bottom'
get_sidebar('single-bottom');

?>

</div><!-- #content -->
</div><!-- #container -->

<?php

// action hook for placing content below #container
thematic_belowcontainer();

// calling the standard sidebar
thematic_sidebar();

// calling footer.php
get_footer();

?>
Et le 2eme :


<div id="message-thread">

<?php do_action( 'bp_before_message_thread_content' ) ?>

<?php if ( bp_thread_has_messages() ) : ?>

<h3 id="message-subject"><?php bp_the_thread_subject() ?></h3>

<p id="message-recipients">
<span class="highlight">
<?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?>
</span>
</p>

<?php do_action( 'bp_before_message_thread_list' ) ?>

<?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>

<div class="message-box">

<div class="message-metadata">

<?php do_action( 'bp_before_message_meta' ) ?>

<?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ) ?>
<strong><a href="<?php bp_the_thread_message_sender_link() ?>" title="<?php bp_the_thread_message_sender_name() ?>"><?php bp_the_thread_message_sender_name() ?></a> <span class="activity"><?php bp_the_thread_message_time_since() ?></span></strong>

<?php do_action( 'bp_after_message_meta' ) ?>

</div><!-- .message-metadata -->

<?php do_action( 'bp_before_message_content' ) ?>

<div class="message-content">

<?php bp_the_thread_message_content() ?>

</div><!-- .message-content -->

<?php do_action( 'bp_after_message_content' ) ?>

<div class="clear"></div>

</div><!-- .message-box -->

<?php endwhile; ?>

<?php do_action( 'bp_after_message_thread_list' ) ?>

<?php do_action( 'bp_before_message_thread_reply' ) ?>

<form id="send-reply" action="<?php bp_messages_form_action() ?>" method="post" class="standard-form">

<div class="message-box">

<div class="message-metadata">

<?php do_action( 'bp_before_message_meta' ) ?>

<div class="avatar-box">
<?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ) ?>

<strong><?php _e( 'Send a Reply', 'buddypress' ) ?></strong>
</div>

<?php do_action( 'bp_after_message_meta' ) ?>

</div><!-- .message-metadata -->

<div class="message-content">

<?php do_action( 'bp_before_message_reply_box' ) ?>

<textarea name="content" id="message_content" rows="15" cols="40"></textarea>

<?php do_action( 'bp_after_message_reply_box' ) ?>

<div class="submit">
<input type="submit" name="send" value="<?php _e( 'Send Reply', 'buddypress' ) ?> &rarr;" id="send_reply_button"/>
<span class="ajax-loader"></span>
</div>

<input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" />
<?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ) ?>

</div><!-- .message-content -->

</div><!-- .message-box -->

</form><!-- #send-reply -->

<?php do_action( 'bp_after_message_thread_reply' ) ?>

<?php endif; ?>

<?php do_action( 'bp_after_message_thread_content' ) ?>

</div>
merci infiniment !

Eléphant du PHP | 343 Messages

27 mars 2013, 16:16

Comment ça 1er et 2e? Je parle bien sur du single.php du thème.
Je ne vois pas de <div class="entry-content"> dans aucun des 2 donc pour le moment je ne vois pas.
Développeur web

Petit nouveau ! | 6 Messages

27 mars 2013, 17:29

Il y a deux élément se nome single.php

Ah il devrait normalement y avoir <div class="entry-content"> pour indiqué le fait qu'il y a l'ensemble du contenue du billet à indiqué ?

Si je dois inclure certain élément, n'hésite à me l'indiquer, je suis bloquer sur ce probleme depuis 3 jours, c'est la cata...

Eléphant du PHP | 343 Messages

27 mars 2013, 17:35

Si tu vas sur http://quentinsaunier.com/news/blabla/ tu vois
<div class="entry-content">
<p><img width="800" height="476" src="http://quentinsaunier.com/news/wp-content/uploads/2013/02/64765_471634432901867_1180691553_n1.jpg" alt="64765_471634432901867_1180691553_n" class="aligncenter size-full wp-image-86">BLALBLALBLA</p>
</div>
et sur http://quentinsaunier.com/news/category/news/
<div class="entry-content">
BLALBLALBLA
</div>
Donc le but du jeu est de recuperer ce qu'il y a dans ton <div class="entry-content"> de /news/blabla/.

Et il ne peut pas y avoir 2 éléments s’appelant pareil dans le même dossier...
Développeur web

Eléphant du PHP | 343 Messages

27 mars 2013, 18:12

Allez je suis sympa, remplace ta category loop par:
// The Category Loop
function thematic_category_loop() {
		while (have_posts()) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class(); ?>">
    			<?php thematic_postheader(); ?>
				<div class="entry-content">
<?php the_content(); ?>

				</div>
				<?php thematic_postfooter(); ?>
			</div><!-- .post -->

		<?php endwhile;
}
add_action('thematic_categoryloop', 'thematic_category_loop');
Dans ton content-extensions.php.
Développeur web

Petit nouveau ! | 6 Messages

28 mars 2013, 15:02

AHHHH MAIS JUSTE GÉNIAL !! MERCI BEAUCOUP BEAUCOUP BEAUCOUP ! :) SA MARCHE !!

Eléphant du PHP | 343 Messages

28 mars 2013, 16:30

De rien ;)
Il faudra faire la même chose pour toutes les loop. Sinon je déconseille d'utiliser le thème, il n'a pas été màj depuis + de 2 ans!
Si tu veux te faire peur active le debug dans ton wp-config
Développeur web