Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 983473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:51:45+00:00 2026-05-16T04:51:45+00:00

I created a custom page template to display a filterable portfolio in WordPress. However,

  • 0

I created a custom page template to display a filterable portfolio in WordPress.
However, on that custom page I am getting an error code –

// <![CDATA[ (function() { document.write('<script charset="utf-8" type="text/javascript" src="http://thinquetanque.disqus.com/get_num_replies_from_wpid.js?v=2.2&amp;t=span&amp;wpid0=14&amp;wpid1=1"><' + '/script>'); })(); //]]> 

I think this might be because the page uses a loop to display posts. And Disqus is set to only display on posts.

See the page at: http://thinquetanque.com/portfolio

Any ideas on how to prevent this?

thanks!

EDIT: I found the spot in the code where this is happening – but I don’t know how to resolve the error.

<script type="text/javascript">
// <![CDATA[
    (function() {
        document.write('<script charset="utf-8" type="text/javascript" src="<?php echo dsq_js_comment_count_url().$post_id_str; ?>"><' + '/script>');

    })();
//]]>
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:51:46+00:00Added an answer on May 16, 2026 at 4:51 am

    Apparently, when using theme frameworks – such as hybrid, or in my case, canvas – there is some sort of issue with the following bit of disqus code:

    add_action('loop_end', 'dsq_loop_end');
    
    function dsq_js_comment_count_url() {
        return 'http://'.strtolower(get_option('disqus_forum_url')).'.'.DISQUS_DOMAIN.'/get_num_replies_from_wpid.js?v=2.2&t=span'; }
    

    I removed it from disqus.php on line 726.
    and voila – problem solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom post type of 'portfolio' and page with a template
I am trying to create a custom accordion for my page to that display
I've created a custom exception for a very specific problem that can go wrong.
I have created custom MembershipUser, MembershipProvider and RolePrivoder classes. These all work and I
I created a custom autocomplete control, when the user press a key it queries
I have created a custom dialog for Visual Studio Setup Project using the steps
I've created a custom list, and made some changes to the way the CQWP
So I've created a custom RenderingTemplate and deployed it to CONTROLTEMPLATES\MyControlTemplates\ It basically dictates
If have created a custom role within SqlServer which I added to the db__denydatareader
I've created a custom ListBox like in here . Thing is it doesn't raise

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.