Create download page from post option link

I’m not entirely certain, but I think you are looking to use this plugin or one like it. http://wordpress.org/plugins/easy-digital-downloads/ You should be able to create free download pages for no cost to your users. Another option would be to just use a second page. In post option “Download Link” box, put the link of another … Read more

Special 404 header page

Further to my comment: I ran across a very similar issue with get_sidebar(), which I expected (incorrectly) to work the same as get_template_part(). A work-around is to do something like this: // instead of using get_header( ‘404’ ); , do this: get_template_part( ‘header’, ‘404’ ); // which should select ‘header-404.php’, or, if it doesn’t // … Read more

How to set title from page-template?

I am guessing that $dataAccess is instantiated as a global. If that is true, this code… $slug = $location = htmlspecialchars(urldecode(get_query_var(‘slug’))); $office = $dataAccess->getProfile($slug); … should also work in a wp_title callback. You’d just need global $dataAccess; to pull the variable into scope, though there are probably more elegant ways to do it.

Specify parent page template

All types of templates have filters to let you control what template is loaded. For pages there’s page_template, where you can check the queried page against an ID, or see if the ID exists in an array of a page’s ancestor IDs. function wpd_page_template_filter( $template ){ // the ID of Mango page $parent_page = 20; … Read more

How to use different jquery function of idangero swiper dependant on page template?

You should really learn how to use debug mode in WordPress. You should go and read this page: Debugging WordPress. The reason being is this line of code add_action( ‘wp_footer’, ‘print__my_inline_script’ ); If you had debug enabled, you would have seen a message like this Warning: call_user_func_array() expects parameter 1 to be a valid callback, … Read more

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