WordPress plug-in for dynamic download link?

Your idea of using the current date in the filename would be the easiest. In the template for your page, you could have the following to generate your current day link: <a href=”https://wordpress.stackexchange.com/path/to/file/filename_<?php echo date(“Y-m-d’) ?>.pdf”>Today’s file</a> The above uses the PHP date function to create a filename with the current date appended to it … Read more

Divs appearing everywhere in post content

You first should find out where the divs are coming from, since that’s not normal behavior. Could be from a plugin or – as Damien said – copy-pasting a text from Word. To remove the divs you can do a simple str_replace(array(‘<div>’, ‘</div>’), ”, $content) either before storing the text in the database (by hooking … Read more

custom header navigation has odd spacing [closed]

I’m not sure what’s causing the causation of your problem, but for some reason the <li> tags are not being added around the “portfolio” menu item, when you visit the blog page. Maybe you can see why in the custom header menu code?! The <li> tags are what creates the spacing(padding-right) in between each menu … Read more

Strip HTML Tags From Search Results

I don’t know about the code you are trying to use, personally I would never use a solution that excludes results, it’s very possible the item being searched for is in those results and excluding them is only a degradation of service. Instead you can use the search.php template file to adjust how your search … Read more

render html no formatting

You have to implement your own hook for template_redirect action: add_action( ‘template_redirect’, ‘wpse8170_template_redirect’, 1 ); function wpse8170_template_redirect() { global $wp_query; // check if it is not a page or if it is front page, then exit from the hook if ( !$wp_query->is_page() || $wp_query->is_front_page() ) { return; } // check queried object, if it is … Read more