0

Hi Everyone.
I am trying to add a pagination.class.php to my wp plugin options page using

include(ABSPATH.'/includes/pagination.class.php');

But I am getting an error... Saying the file does not exists.

When I view the source, the file location is website/includes/pagination.class.php

How do I set this to be the plugin directory ?

2
Contributors
3
Replies
13
Views
4 Years
Discussion Span
Last Post by everton.retweets
0

Hi, thanks for your reply, but that didnt help...

I know how to include css and js into my plugin for styling and functionality, What I am trying to do is include a .php when logged in as administrator in wp dashboard.

I have created the options page and would like to include a different php file into the same file.

0

Here is how I got it to work - Just incase anyone else is having the same problem...

require_once( plugin_dir_path( __FILE__ ) . '/filename.php' );
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.