• Hello,
    I’m tweaking (read: hacking to pieces) the templates to my taste. I’ve got the main loop looking exactly like I want it, and now I’m working on getting the comments page correct. I’m using popups for comments — a modified version of wp-comments-popup.php. Those look great. The problem is, the permalink for an entry screws this up.
    Apparently, it is assumed that even if I’m using popup comments for the main page, I’ll want the comments included in the permalink versionb of the entry. Whether that’s true or not, comments_popup_link() seems to hide itself when present on a permalink page. Is there a way to make comments_popup_link() work on a permalink page?
    Thanks,
    gilrain
    P.S. I’m loving WordPress! The documentation is sparse and vague, but otherwise it’s a strong package. ??

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

    See, these are some of the limitations to WordPress.
    What WordPress needs to do is create a few extra files for stuff like this:
    An index page, a page for all the posts, a page for the categories, etc

    Oops, forgot to log in.

    has this problem been solved? could someone please let me know?
    I am having problems getting my comments to display on permalinked pages as well.
    -Neil Chatani
    https://www.neilchatani.com

    This is also an issue for me and until I get it fixed I can’t use my blog!

    Please, please, please could someone have a look, I’d be eternally grateful.

    Thanks.

    Ben

    Ben – what is your issue ? url ?

    https://www.29twelve.com/blog/

    there are 2 entries (both with the same picture but with different titles), the popup links work on the front page but not if you go to the previous page.

    Thanks.

    Ben

    “What WordPress needs to do is create a few extra files for stuff like this:”

    And what you would end up with is a bloated, over coded version of MT.

    No thank you.

    Moderator James Huff

    (@macmanx)

    In your archives template, replace the_excerpt with the_content .

    Thanks for the reply macmanx.

    I thought ‘permalink’ pages were generated from single.php as that’s what I have been changing so far? That is handy to know though as I’m sure that will come up as a problem in the future!

    Single.php has the_content in it. I’ve even tried copying exactly what I have in my index.php to single.php but this still doesn’t show the comments.

    Thanks.

    Ben

    It’s quite simple to solve this, though it does require a change to your comment-functions.php file.

    Open the file and scroll down to the comments_popup_link function (at line 90. A little bit further down you’ll see this line (at 94):

    if (! is_single() && ! is_page()) {

    Simply change it to read:

    if (! is_page()) {

    and the problem should be solved.

    Thanks very much robcorr, it worked a treat!

    I had found the bit of code in the comment-functions.php file but I hadn’t realised that bit of code was the bit that needed changing.

    Thanks again.

    Ben

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Undocumented “feature” work-around?’ is closed to new replies.