megwhitee
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Categories / Parent ? ChildPerfect. Exactly what I needed. Thanks! ??
Forum: Themes and Templates
In reply to: Categories / Parent ? ChildThanks, but it seems to do the order of
CHILD ? PARENT
Any ideas?
Forum: Themes and Templates
In reply to: Categories / Parent ? ChildI’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.
Forum: Themes and Templates
In reply to: Categories / Parent ? ChildHi 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?Forum: Themes and Templates
In reply to: Adding ARCHIVES to menu topAha! Wow, finding this plugin took forever but is doing the trick.
Forum: Themes and Templates
In reply to: Adding ARCHIVES to menu topHi 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
Forum: Plugins
In reply to: [Contact Form Manager] Email not sendinghosting is through godaddy, but email uses googleapps
Forum: Plugins
In reply to: Comment CallbackThanks
Forum: Plugins
In reply to: Comment CallbackFIXED. 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 aboveForum: Plugins
In reply to: Comment CallbackAlso, if you know what I should put into my functions.php i’ll give that a go.
Forum: Plugins
In reply to: Comment CallbackHi alchymyth,
Thanks for your help. I’ve given it a go, reuploaded it, but still get errors.
https://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 1334In 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 CallbackHere is my comments.php file. Thanks so much guys.
[please make sure to mark any posted code according to https://codex.www.ads-software.com/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; ?>