• Resolved SFGolfer

    (@sfgolfer)


    I’m sure I’m doing something wrong but my single record template is not being found.

    In the plugin’s settings, I identified the page where [pdb_single] is located as ‘test2’.

    Then on test2 I have this shortcode:

    [pdb_single template="test"]

    Created a template named pdb-single-test.php in the templates directory located at: /public_html/blog/wp-content/plugins/participants-database/templates

    The default template (pdb-single-default.php) is also in that directory.

    However, my customizations don’t appear so I renamed pdb-single-default.php, tried to reload the page and this message appears:

    Warning: include(/home/rum/public_html/blog/wp-content/plugins/participants-database/templates/pdb-single-default.php) [function.include]: failed to open stream: No such file or directory in /home/rum/public_html/blog/wp-content/plugins/participants-database/participants-database.php on line 520

    http://wordpress.org/extend/plugins/participants-database/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    SFGolfer,

    The plugin is looking for your custom templates in your theme directory in a folder named ‘templates’.

    We can’t put them in the plugin directory because updates would delete them.

    Thread Starter SFGolfer

    (@sfgolfer)

    Ahhh…that worked.

    I think I was also confused by your website’s documentation which differs from the Other Notes here on WordPress.org and states to put my template into a different location:

    …copy the template file you want to use as a starting point to wp-content/templates/. Create the directory if it doesn’t exist; if it does exist, just place the the template file in there.

    Plugin Author xnau webdesign

    (@xnau)

    Yes, damn…having documentation in two places has it’s drawbacks…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Participants Database] Template Not Found’ is closed to new replies.