Bizarre issue with custom RSS template

First off, as background context, after a lot of Googling, this is the method I’ve chosen to create the RSS template. (If there’s a better approach, I’m all ears): Second time this comes up today. 🙂 You should use add_feed() ( source ) rather emulate this stuff with page. As for issue you describe I … Read more

Remove Items from Template Homepage

As long as you don’t break the PHP or the HTML markup you can delete anything you want. I’d recommend building a child theme over editing one, and you’d want to steer clear of commercial themes that have restrictions on what you can do to the theme, but otherwise there is no reason you can’t … Read more

How to change header image size in custom themes

If you’re using Twenty Eleven, just add this to your functions.php file and you should be good to go: remove_filter( ‘HEADER_IMAGE_WIDTH’, ‘twentyeleven_header_image_width’ ); remove_filter( ‘HEADER_IMAGE_HEIGHT’, ‘twentyeleven_header_image_height’ ); define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘child_header_image_width’, 1700) ); define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘child_header_image_height’, 300) );

get_template_directory() still returning path to previous theme

The get_template_directory() and get_template_directory_uri() functions don’t actually echo anything at all. They will make no output at all unless you echo them. So your code that looks like this: <img class=”frontpageimg” src=”https://wordpress.stackexchange.com/questions/119910/<?php get_template_directory(); ?>/images/slogan-2.png”> Should actually cause this output: <img class=”frontpageimg” src=”https://wordpress.stackexchange.com/images/slogan-2.png”> Which may not be what you’re expecting. Examine the source of the page. … Read more

Can’t format content of Rich Text Editor in Template

Good question for your first question! Try running the variable through the_contnet Filter – You can use it like this: $editor_value = get_post_meta( $post->ID, “PLUGIN_VALUE”, true ); echo apply_filters( ‘the_content’, htmlspecialchars_decode( $editor_value ) ); I believe what’s happening is that whenever you save your postmeta, it is being escaped as it should and converted to … Read more

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