This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I'm using this to get away from Enfold and Devi which marks everything up with hundreds of shortcodes. This will output ugly html, but at least it's html. | |
| In wp-admin/includes/export.php change this line: | |
| $content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); | |
| To: | |
| $content = wxr_cdata( apply_filters( 'the_content_export', do_shortcode( $post->post_content ) ) ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(!isset($_POST["input"])|$_POST["input"]==""){ //check to see if the url is set. if not set prompts for a url. | |
| ?>Clean: | |
| <form action="index.php" method="post"> | |
| <textarea name="input" rows="40" cols="80"></textarea><br><br> | |
| <input type="submit"> | |
| </form><?php | |
| exit(); | |
| }else{ | |
| $input = htmlspecialchars_decode($_POST["input"]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header("Content-type: text/xml"); | |
| $feed_name = "My Audio Feed"; | |
| $feed_description = "Feed for the my audio files in some server folder"; | |
| $base_url = strtok('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], '?'); //gets the current page's url. strips off the url's parameters | |
| $allowed_extensions = array('mp4','mp3'); | |
| ?> | |
| <?php echo '<?xml version="1.0"?>'; //we have to use php to output the "<?" ?> | |
| <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
NewerOlder