Editing page content through FTP?

If the content is dynamically written, you won’t be able to change this through ftp. At the template files the content is called by typing <?php the_content(); ?>(or the_content(); ) if already scripting in php. You need to get his WordPress login information to log in to his website, over there you can see pages, … Read more

Beautify WordPress HTML output without any plugins

Great question, I asked it myself and here’s what I came up with. You can just use this in a custom plugin or in functions.php. // turn on Output Buffering (hence *ob*) ob_start(); // register a callback to run after WordPress has outputed everything add_action(‘shutdown’, function () { // get the output buffer and store … Read more

Add HTML Snippet only on specific pages

You can try using the wp_head hook like this and checking if it’s a post or page you want it to load on with an if statement: function wse_add_snippet_to_header() { //replace the array with your own post ids that you want this on //replace is_single with is_page if you want to check for pages instead … Read more

Add HTML to single post tag

I found the best solution was to add a custom field, head, and then build a short plugin to add the contents to the head tag: add_action(‘wp_head’, ‘add_HTML_head’); function add_HTML_head(){ global $post; if(!empty($post)){ // get custom field for ‘head’ $headHTML = get_post_meta($post->ID, ‘head’, true); if(!empty($headHTML)){ echo $headHTML; } } } I’ve packaged it up into … Read more