Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi Metal_13,
    I’m sorry but I didn’t follow you. I don’t see what you’re doing with wpDiscuz.
    wpDiscuz is being loaded through <?php comments_template() ?> template tag.

    Also you can load wpDiscuz using this code:

    if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/comment-form/form.php')){
    	include_once ABSPATH . 'wp-content/plugins/wpdiscuz/comment-form/form.php';
    }

    Thread Starter Metal_13

    (@metal_13)

    the code works but the ajax or css isnt loading.
    i inserted the code in the tag page btw.

    here’s one of the tag page im talking about.
    https://pinoyalbums.com/tag/franco/

    Plugin Author gVectors Team

    (@gvectors-team)

    The WordPress comment system is designed for sigular content types, such as pages, posts and other custom content types. wpDiscuz works based on WP native comment system, so there is not option to run comments for Tag Page, there is not PostID on this page, and comments can not be attached to any post/page. You can’t use WordPress comments on Tag page. The only option is to create a page with custom template, then write a code which gets all posts by a Tag. This page will have a PostID and will be able to work with comment systems.

    Thread Starter Metal_13

    (@metal_13)

    i made a simple script to attach 1 post to every tag, and i use the post to save post_meta,attachments, and comments to the tag..

    the comment works but not wpDiscuz’s template.. i think the tag page is missing some script file and css..

    i made a test comment on this tag page..
    https://pinoyalbums.com/tag/franco/#comment-1542

    Plugin Author gVectors Team

    (@gvectors-team)

    The issue is not in CSS/JS, we can load it on Tag page, but after that you’ll have problems with commenting. I’m posting my last reply again to make it clear. wpDiscuz works based on WP native comment system, so there is not option to run comments for Tag Page, there is not PostID on this page, and comments can not be attached to any post/page. You can’t use WordPress comments on Tag page. The only option is to create a page with custom template, then write a code which gets all posts by a Tag. This page will have a PostID and will be able to work with comment systems.

    Thread Starter Metal_13

    (@metal_13)

    Did you check the link that i posted?.. like i said, i attached/saved a $post->ID to every tag.. NOT added tags to the posts like you normally do.

    my tags has its own $post->ID saved inside their own metas.
    i made a custom plugin to save metas inside any tag.

    Please check the link.. its there and its “working”. normal comment template works 100%.. yes im sure.

    I used wp_query to get the post saved in the tag page
    example:
    $TagPostID <<— saved in tag
    wp_query($TagPostID){ show comments and form}

    working example of the tag page..
    every info in this tag page
    https://pinoyalbums.com/tag/franco/

    is all from this post
    https://pinoyalbums.com/48784/franco/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wpDiscuz template not showing in WP_Query’ is closed to new replies.