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

  • SEARCH
  • Home
  • 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 8253879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:01:34+00:00 2026-06-08T01:01:34+00:00

All, I’ve got a Page in WordPress that I’m creating to allow some people

  • 0

All,
I’ve got a Page in WordPress that I’m creating to allow some people to submit some feedback on to me. On my page I’ve got the following code to include the reCaptcha:

<?php
require_once('http://localhost/website/recaptchalib.php');
$publickey = "12345"; // you got this from the signup page
?>

Then where I want the reCaptcha displayed I’ve got the following bit of code:

 <?php echo recaptcha_get_html($publickey); ?><div id="captchaStatus"></div>

However, when I try and display this page I get the following error message from WordPress:

Fatal error: Call to undefined function recaptcha_get_html()

Is there a better way to include the reCaptcha on a WordPress page? I know there is a reCaptcha plugin but I believe that is only for pages with Comments on it which isn’t my need here.

Do I need to not include it as a link and instead a path to the recaptcha page? If so, how can I do that from a page in WordPress to my base folder?

Any advice is greatly appreciated.

Thanks

  • 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-06-08T01:01:39+00:00Added an answer on June 8, 2026 at 1:01 am

    Not sure if you’ve written it this way for example purposes, but your require_once call is using a http request to try and include from, and as such I don’t think your lib will be included correctly.

    Try using the proper file path to the .php file you’re trying to include, i.e. local/path/to/file.php.

    The include path will look for local files on the disk – not make a http connection to a file.

    For reference: http://www.php.net/manual/en/ini.core.php#ini.include-path

    I believe WordPress specifies an ABSPATH constant in wp-config.php that you can use to get the root path of your WP install.

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

Sidebar

Related Questions

All, I have some script tags that are not working in Wordpress. If I
All, Say I have the following bit of code: select: function(start, end, allDay) {
All, I have the following code: $fetch = mysql_query(SELECT * FROM calendar_events where event_status='booked'
All, I'm using wordpress with this and for some reason the eventDrop stopped working.
All the code/commands below are part of a PHP script that processes images from
all creating a cakephp(using 2.1.2) page. we prompt the user to enter how many
All, I'm going to use a QR code from the following URL: http://qrcode.kaywa.com/ I
All, If I run a query like the following: $qry = Select wrong_column from
All, If I've go the following database fields/values: user_id field_name field_value 1 EventHour1 1
All I want to do is return the index of the i that is

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.