Forum Replies Created

Viewing 15 replies - 31 through 45 (of 118 total)
  • Thread Starter mayuxi

    (@mayuxi)

    @kakgungor

    Exactly, read more about this issue here.

    You can install previous version (1.4) from here: http://wordpress.org/plugins/wp-markdown/developers/

    Works for me just fine.

    Thread Starter mayuxi

    (@mayuxi)

    BTW, I couldn’t wait for new version, so I fixed issue by myself.

    All you need to do is add this code to upprev.php, somewhere after line 68-69 (inside iworks_upprev_check() function):

    if ( function_exists('related_posts_exist') && ! related_posts_exist() ) {
    	    return true;
        }

    So my iworks_upprev_check() looks like this:

    function iworks_upprev_check()
    {
        if ( !is_singular() && 'page' != get_option( 'show_on_front' ) ) {
            return true;
        }
    
        if ( function_exists('related_posts_exist') && ! related_posts_exist() ) {
    	    return true;
        }

    This code checks if YARP internal function ‘related_posts_exist’ exists and then check if there is any related posts found.

    Additional:
    Maybe you want to switch this function to ‘related_entries_exist’, since ‘related_posts_exist’ only checks if relate *posts* exist, not pages or other post_type.

    It’s a default one comes with twentytwelve theme.

    <?php
    
    /*
     * If the current post is protected by a password and
     * the visitor has not yet entered the password we will
     * return early without loading the comments.
     */
    if ( post_password_required() )
    	return;
    ?>
    
    <div id="comments" class="comments-area">
    
    	<?php // You can start editing here -- including this comment! ?>
    
    	<?php if ( have_comments() ) : ?>
    
    		<h2 class="comments-title">
    			<?php
    				printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    			?>
    		</h2>
    
    		<ol class="commentlist">
    			<?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
    		</ol><!-- .commentlist -->
    
    		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    		<nav id="comment-nav-below" class="navigation" role="navigation">
    			<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentytwelve' ) ); ?></div>
    		</nav>
    		<?php endif; // check for comment navigation ?>
    
    		<?php
    		/* If there are no comments and comments are closed, let's leave a note.
    		 * But we only want the note on posts and pages that had comments in the first place.
    		 */
    		if ( ! comments_open() && get_comments_number() ) : ?>
    		<p class="nocomments">Комментарии закрыты.</p>
    		<?php endif; ?>
    
    	<?php comment_form(); ?>
    
    </div><!-- #comments .comments-area -->

    Pippin, could you help me please here:

    I’m using code below in my comments.php, but it affects my main comment loop (it shows only featured comments now). Is there any method to avoid that? Or some reset loop (wp_reset_query(); or wp_reset_postdata();) alternative?

    <?php // WP_Comment_Query arguments
    
    	$args = array (
    		'meta_query'     => array(
    			array(
    				'key'       => 'featured',
    				'value'     => '1',
    			),
    		),
    	);
    
    	// The Comment Query
    	$comment_query = new WP_Comment_Query;
    	$comments = $comment_query->query( $args ); 
    
    	if ( $comments ) {
    		echo '<h2 class="comments-title">Best comment/h2>';
    		foreach ( $comments as $comment ) { ?>
    			<?php echo '<p>' . $comment->comment_content . '</p>'; ?>
    		<?php }
    	}
    
    	?>
    Thread Starter mayuxi

    (@mayuxi)

    I’ve solved my problem and found the solution with this plugin. Right keyword was “featured comments”.

    Hope it will be helpful.

    Pippin, thanks for the plugin. I guess it’s what I want for my blog.

    As I understood qaxaka’s questions, he is asking if it’s possible to post’s author mark comments as featured/bured (only in his posts).

    I guess it’s possible with some Role Management plugins.

    Same problem here. And PostViews records less, than GA 🙁

    my website

    Thread Starter mayuxi

    (@mayuxi)

    Hi!

    Thank you for the fix, I think it works, here is the out put:

    <a href="http://magazeta.com/author/alex_fei/" title=""><span class="avatar"><img alt='Алексей Чигадаев' src='http://magazeta.com/wp-content/uploads/2013/01/Aleksey-CHigadaev_avatar-60x60.jpg' class='avatar avatar-60 photo' height='60' width='60' title="" /></span></a>

    or (different author)

    <a href="http://magazeta.com/author/vika/" title=""><span class="avatar"><img src='http://1.gravatar.com/avatar/79d0574ba00099da6128ffec3f0d4f42?s=60&d=retro&r=G' class='avatar avatar-60 photo' height='60' width='60' title="" alt="" /></span></a>

    As you see in first example:
    – Author using Local avatar,
    – title attribute is empty for link,
    – alt attribute is OK, using author’s name
    – title attribute for img is empty.

    In example #2: author using gravar and all title/alt tags are empty 🙁

    Empty attributes are valid, but looks useless.

    Thanks1

    Thanks, I would like to help, but I’m really don’t know why it works so weird in Gmail app Ж(

    Dear author, thanks for great plugin.

    Could you please check mobile version script again, looks like it works in mobile Safari (ios 7), but scroll-up still appears, when I viewing website in Gmail application (which is wierd, I know)

    example page / screenshot (ios 7, gmail app)

    Xiexie!

    Thanks. I set it to 150 to 150 (same as mini thumbnails), and will check how it works in future.

    I don’t need extra “medium images”, since I have own setup in functions.php.

    WordPress 3.7.1. Same issue. Full images are loading as thumbnails in media library. Is there any fix for this so far?

    Thread Starter mayuxi

    (@mayuxi)

    Wow, probably I should try another board?

    Thread Starter mayuxi

    (@mayuxi)

    Wow, thanks for the quick response 🙂

    Thread Starter mayuxi

    (@mayuxi)

    No replies yet? Fuuuu… 🙂 Anybody?

Viewing 15 replies - 31 through 45 (of 118 total)