Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Themes by

 I would like to write custom code to include the voting within a page on my wordpress site.

I need to include some files: 
    require_once QA_INCLUDE_DIR.'qa-db-selects.php';
    require_once QA_INCLUDE_DIR.'qa-app-format.php';
require_once QA_INCLUDE_DIR.'qa-app-users.php';

I set the QA_INCLUDE_DIR to the correct URL but I am getting the errors ERR_TOO_MANY_REDIRECTS

How can I correctly include the files? 


1 Answer

+1 vote
edited by

What is value of your QA_INCLUDE_DIR?

By the way, although it may be a mistake in your question, QA_INCLUDE_DIR must be a Absolute Path (directory) in your web server. It is not URL. For example, "/home/your_account/public_html/qa-include/" etc. And also, correct QA_INCLUDE_DIR is set by including qa-base.php.