Odpowiedź forum utworzona

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tomiz

    (@tomiz)

    Wszystko zostało naprawione za sprawą podmienienie funkcji na

    <?php
    echo get_the_post_thumbnail( $post_id, $size, $attr );
    ?>

    Teraz ostatnia sprawa to jak zrobić z miniaturki odnośnik do wpisu?

    Forum: Wtyczki
    W odpowiedzi na: Wp-Recaptcha
    Thread Starter tomiz

    (@tomiz)

    głównie chodzi o to, że nie wiem jak i gdzie to dodać do_action(’comment_form’, $post->ID);

    tu mam kod pliku szablonu comments.php

    <?php
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Proszę nie ładuj tej strony bezpośrednio. Dzięki!');
    
    	if ( post_password_required() ) { ?>
    		<p class="alert"><?php _e('Ten post jest chroniony hasłem. Wprowadź hasło, aby zobaczyć komentarze', 'psdblog'); ?>.</p>
    	<?php
    		return;
    	}
    ?>
    
    <?php if ( have_comments() ) : ?>
    
    <div class="post-comments">
    	<a name="comments"></a>
    
    	<ul class="comment-controls">
    		<li><a class="current"><span><?php _e('Komentarze', 'psdblog') ?></span></a></li>
    	</ul>
    
    	<h3>Komentarzy: <?php comments_number('0', '1', '%' );?></h3>
    
    	<ol class="commentlist">
    		<?php wp_list_comments('type=comment&callback=custom_callback'); ?>
    	</ol>
    
    	<ol class="commentlist trackbacks display-none">
    		<?php wp_list_comments('type=pings&callback=custom_callback'); ?>
    
    		<?php if(!vectors_pings_count()): ?>
    		<ul><?php _e('There are no trackbacks to display at this time.', 'psdblog'); ?></ul>
    		<?php endif ?>
    	</ol>
    </div>
    
    <div class="clear"></div>
    
    <?php else : // this is displayed if there are no comments so far ?>
    	<?php if ( comments_open() ) : ?>
    		<!-- If comments are open, but there are no comments. -->
    	 <?php else : // comments are closed ?>
    		<!-- If comments are closed. -->
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php
    
    $fields =  array(
    	'author' => '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" ' . $aria_req . ' /> ' .
    	            '<label for="author">' . __( 'Imię' ) . '</label><br /><br />',
    	'email'  => '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" ' . $aria_req . ' />' .
    	            '<label for="email">' . __( 'Email' ) . '</label><br /><br />',
    	'url'    => '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" />' .
    	            '<label for="url">' . __( 'Strona www' ) . '</label><br /><br />'
    
    );
    
    ?>
    
    <?php
    
    comment_form(array(
    	'fields'				=>	$fields,
    	'label_submit'			=>	'Dodaj komentarz',
    	'comment_notes_after'	=>	'',
    	'comment_notes_before'	=>	'',
    	'comment_field'			=>	'<textarea name="comment" id="comment" tabindex="4" rows="7" cols="10"></textarea><label for="comment"></label><br><br>'
    
    ));
    
    ?>

    Forum: Wtyczki
    W odpowiedzi na: Wp-Recaptcha
    Thread Starter tomiz

    (@tomiz)

    to wiem ale nic nie pisze jak do własnego motywu podczepić ten plugin

Viewing 3 replies - 1 through 3 (of 3 total)