Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter megwhitee

    (@megwhitee)

    Perfect. Exactly what I needed. Thanks! ๐Ÿ™‚

    Thread Starter megwhitee

    (@megwhitee)

    Thanks, but it seems to do the order of

    CHILD โ€ข PARENT

    Any ideas?

    Thread Starter megwhitee

    (@megwhitee)

    I’m getting close with this:

    <?php the_category(‘•’,’multiple’, $post_id ); ?>

    But it shows my parent twice.

    PARENT โ€ข CHILD โ€ข PARENT

    and I don’t want the second one to show.

    Thread Starter megwhitee

    (@megwhitee)

    Hi lucille.dana. Thanks for that, but I get this error:

    CATCHABLE FATAL ERROR: OBJECT OF CLASS WP_ERROR COULD NOT BE CONVERTED TO STRING IN

    If I post:
    <?php the_category( $separator, $parents, $post_id ); ?>
    It shows up without errors, but just need to adjustments for the parent category and bullets. Any thoughts?

    Thread Starter megwhitee

    (@megwhitee)

    Aha! Wow, finding this plugin took forever but is doing the trick.

    https://wordpress.org/support/plugin/jc-submenu

    Thread Starter megwhitee

    (@megwhitee)

    Hi Akinaktansel,

    Was more looking at archives though and having it automatically add new months/years as time goes by, looks like categories just does categories and not the date and I’d have to automatically add new ones each month. Any ideas? ๐Ÿ™‚ Thanks

    Thread Starter megwhitee

    (@megwhitee)

    hosting is through godaddy, but email uses googleapps

    Forum: Plugins
    In reply to: Comment Callback
    Thread Starter megwhitee

    (@megwhitee)

    Thanks

    Forum: Plugins
    In reply to: Comment Callback
    Thread Starter megwhitee

    (@megwhitee)

    FIXED. it might have taken some time for my website to reload, but once i reuploaded the comments.php with this revision, it got resolved.

    Thanks so much. ๐Ÿ™‚

    this line
    <?php wp_list_comments(‘type=comment&callback=advanced_comment’); //this is the important part that ensures we call our custom comment layout defined above
    tries to call a function advanced_comment() which should (usually) be defined in functions.php of your theme (or in a plugin).

    if your theme does not have this function, change the one line to:
    <?php wp_list_comments(‘type=comment’); //this is the important part that ensures we call our custom comment layout defined above

    Forum: Plugins
    In reply to: Comment Callback
    Thread Starter megwhitee

    (@megwhitee)

    Also, if you know what I should put into my functions.php i’ll give that a go.

    Forum: Plugins
    In reply to: Comment Callback
    Thread Starter megwhitee

    (@megwhitee)

    Hi alchymyth,

    Thanks for your help. I’ve given it a go, reuploaded it, but still get errors.

    http://www.sweetheartevents.ca/the-perfect-proposal-on-a-budget/#comment-14

    This shows up:
    Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘advanced_comment’ not found or invalid function name in /home/content/27/10338827/html/wp-includes/comment-template.php on line 1334

    In my comment-template.php, I’ve copied in a few lines, to see if you see anything there?

    function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
    $depth++;
    $GLOBALS[‘comment_depth’] = $depth;
    $GLOBALS[‘comment’] = $comment;

    if ( !empty( $args[‘callback’] ) ) {
    call_user_func( $args[‘callback’], $comment, $args, $depth );
    return;
    }

    if ( ( ‘pingback’ == $comment->comment_type || ‘trackback’ == $comment->comment_type ) && $args[‘short_ping’] ) {
    $this->ping( $comment, $depth, $args );
    } elseif ( ‘html5’ === $args[‘format’] ) {
    $this->html5_comment( $comment, $depth, $args );
    } else {
    $this->comment( $comment, $depth, $args );
    }
    }

    Forum: Plugins
    In reply to: Comment Callback
    Thread Starter megwhitee

    (@megwhitee)

    Here is my comments.php file. Thanks so much guys.

    [please make sure to mark any posted code according to http://codex.wordpress.org/Forum_Welcome#Posting_Code – some of the code below is partially broken by the forum’s parser]

    <?php
    /**
    
     */
    
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    
    	if ( post_password_required() ) { ?>
    		<p>This post is password protected. Enter the password to view comments.</p>
    	<?php
    		return;
    	}
    ?>
    
    <!-- You can start editing here. -->
    
    <?php if ( have_comments() ) : ?>
    	<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to โ€œ<?php the_title(); ?>โ€</h3>
    
    <ol>
    		<?php wp_list_comments('type=comment&callback=advanced_comment'); //this is the important part that ensures we call our custom comment layout defined above
                    ?>
    	</ol>
    	<div></div>
    	<div>
    		<div><?php previous_comments_link() ?></div>
    		<div><?php next_comments_link() ?></div>
    	</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. -->
    		<p class="nocomments">Comments are closed.</p>
    
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if ( comments_open() ) : ?>
    
    <div id="respond">
    
    <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
    
    <div>
    	<small><?php cancel_comment_reply_link(); ?></small>
    </div>
    
    <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    <p>You must be <a>">logged in</a> to post a comment.</p>
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( is_user_logged_in() ) : ?>
    
    <p>Logged in as <a>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a>" title="Log out of this account">Log out ยป</a></p>
    
    <?php else : //this is where we setup the comment input forums ?>
    
    <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    <label for="url"><small>Website</small></label></p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
    
    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    
    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Post" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    
    </form>
    
    <?php endif; // If registration required and not logged in ?>
    </div>
    
    <?php endif; ?>
Viewing 12 replies - 1 through 12 (of 12 total)