Display Custom Posts

plugin_dir_path(__FILE__).’review-preview.php’ //this is the culprit!! Above line works for PHP code on a plugin directory file. But the function I assume is in functions.php file of your theme directory. So you may have to give full directory path in your code like: /home/user/var/www/wordpress/wp-content/plugins/my-plugin/review-preview.php

display my pages html

If you’re looking for ‘HTML pages’ you might be interested on page templates or custom themes so I would like you to read a bit more about the WordPress documentation called Codex. You can find information about how to create templates and themes. Some of this links should help you: http://codex.wordpress.org/Theme_Development http://codex.wordpress.org/Page_Templates If you’re already … Read more

Editing a theme’s templates

Where is theme located is a little tricky to answer in very general form: Themes are detected in the registered theme directories (which can be multiple folders). Typically there is at least one theme folder in site’s content folder (however content folder is also configurable). However, for typical out of the box install this is … Read more

Confused about customising widgets

What you have used is actually pretty obsolete remnants of “old” widget implementation. The current implementation of widgets in WordPress is using new, class-based approach, see Widgets API in Codex. There isn’t really designated way to “customize” functionality of existing widget. Depending on circumstances you might be able to use hooks in its code. Outside … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)