Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Forum: Plugins
    In reply to: get bookmark categories
    Thread Starter tkhobbes

    (@tkhobbes)

    Thanks – I solved this with other means, meantime, as the drop-down is not necessary any more. I set this to solved, in order for others to serve as reference. ??

    Thread Starter tkhobbes

    (@tkhobbes)

    Thanks – the first bit is exactly what I need. I will make sure to have only 1 level of subcategories to have it work.

    However, about the second one, this is a great start, but unfortunately not exactly what I need… is there really no possibility in displaying the template of a parent category for any given post?

    Thread Starter tkhobbes

    (@tkhobbes)

    No one? (*bump*)

    Thread Starter tkhobbes

    (@tkhobbes)

    Oh – that seems to be pretty much what I needed…..*oops*….
    Sorry, I never came across this page, to be honest, but I added it to my bookmarks now.
    Thanks!

    Thread Starter tkhobbes

    (@tkhobbes)

    BTW – you can have a look at this at https://www.hobbes.ch/test … just click a category and then on an article…

    Thread Starter tkhobbes

    (@tkhobbes)

    Ah – funny, I read on some website (can’t remember, one that taught “building a theme from scratch) that within the loop, not only the post(s), but also the comment links will show up by default…

    However, I don’t want the popup stuff – what I want is a link that says “comments” and when you click on it (and end up on the #respond thingy), you get a nicely designed comment form (which comes from comments.php, already designed, see above).

    What happens though is when I insert the link manually (as said above), and click it, I end up in exactly the same page as before – but without comment link and without comment form….. ??
    And this is exactly the part I do not understand.

    Thread Starter tkhobbes

    (@tkhobbes)

    It does not change the basic situation – the comment link is displayed, but as soon as I click on it, I end up on a screen with JUST the post and NO comment form…
    Also, I think by default WordPress should show the comment link by itself – i. e. you don’t have to put the <?php comments_popup_link ?> command?

    Thread Starter tkhobbes

    (@tkhobbes)

    using the suggested comments_template() function (just underneath the the_content(“More”); function) gives a (very ugly) comment text-field underneath each post – but ONLY when I am in the “single-view” mode of the post (not in a category view); furthermore, in the category views, the text “x comments” is still missing, as is the “edit” link (even though I am logged in)…

    Thread Starter tkhobbes

    (@tkhobbes)

    I don’t see neither the “comments” link nor the “edit” link – regardless as whom I am logged in. Besides, the issue is about the “comments” link, not about the “edit” link ??

    But I assume that they are connected – as I can’t see any of them and am supposed to see both of them…

    Thread Starter tkhobbes

    (@tkhobbes)

    I DO have a comments.php – it’s quite sophisticated (and frankly copied from the Sandbox theme with some little adjustments). But I don’t have a single.php file (as if not available, WordPress should just use index.php)

    Here is comments.php:

    <?php if ($comments) { ?>
    
      <ol id="commentlist">
        <?php foreach ($comments as $comment) { ?>
    
          <li id="comment-<?php comment_ID() ?>"><?php comment_text() ?>
            <cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> by
            <?php comment_author_link() ?> —
            <?php comment_date() ?> @
            <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite>
            <?php edit_comment_link(__("Edit This"), ' |'); ?>
    
          </li>
    
        <?php } ?>
      </ol>
    
    <?php } else { // If no comment is available ?>
    
      No comments.
    
    <?php } ?>
    
    <?php if (comments_open()) { ?>
    
      <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
        <?php if ($user_ID) { ?>
          Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
          <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a>
    
        <?php } else { ?>
          <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
          <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label>
    
          <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
          <label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label>
    
          <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
          <label for="url"><small>Website</small></label>
    
        <?php } ?>
    
        <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
    
        <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    
        <?php do_action('comment_form', $post->ID); ?>
      </form>
    
    <?php } ?>

    Thread Starter tkhobbes

    (@tkhobbes)

    OK, found out something else. After adding the line

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>

    the “comment” link suddenly appeared. But – clicking on it (on the link pointing to #respond, basically), lead me back to where I began – to a nice website containing the post, but without possibility to add a comment…

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