Tag Info

Hot answers tagged


You do not need to use quotes around some data types in SQL, integers being one of those types. That is why the first block of code works. It is a perfectly valid SQL statement. You do need to quote strings in SQL. That is why your second block of code does not work. The correct form would be: $all_pages = $wpdb->get_results( 'SELECT post_title, guid ...


When we call get_the_title(), then the post title is taken through the wptexturize() function via the the_title filter: add_filter( 'the_title', 'wptexturize' ); The en-dash and em-dash are replaced with /* translators: en dash */ $en_dash = _x( '–', 'en dash' ); /* translators: em dash */ $em_dash = _x( '—', 'em dash' ); A simple ...

Only top voted, non community-wiki answers of a minimum length are eligible