Why wordpress can’t display the bash command properly?

When a post gets published, it runs the_content() through a filter to strip out unsafe HTML. It looks like the parser thinks <people.txt is malformed HTML and strips it out. Change < to &lt;, which is the HTML entity for <, and you should be able to publish the post and view it properly on … Read more

Query WordPress Database and Post HTML Table

$html= “<table>”; foreach($result as $r){ $html .=”<tr>”; $html .=”<td>”.$r->post_title.”</td>”; $html .=”<td><a href=””.get_the_permalink($r->ID)””>”.$r->post_title.”</a></td>”; $html .=”</tr>”; } $html .=”</table>”; echo $html; To avoid the depreacated usage of PHP code snippets you can wrap it in a shortcode and use anywhere in a page/post content editor function Stack_308511_post_grid( $atts ) { $atts = shortcode_atts( array( ‘limit’ => 10, … Read more

allow html characters on eshop data entry boxes

Reading a little… (cause that is the problem, we don’t read) I found the solution for my problem, “htmlspecialchars_decode” function would do the trick, now I wonder how to close or erase a post in here ^^. <?php if (isset($eshop_product[‘details’])) echo htmlspecialchars_decode($eshop_product[‘details’]); ?>

Language selection for blog doesn’t exist?

Well, thanks to a suggestion from one of my mates I resolved the more critical problem (2) of the Hebrew text displaying in gibberish. All I needed to do was to re-encode the files as UTF-8 without BOM (they were encoded as UTF-8 (plain)). I re-uploaded these files to the server and Voila, everything was … Read more

WBR tag breaking hyperlinks

I just checked this on a test site. I added only this link to a post. <a href=”http://www.msrlm.org/mrlif/faqenglish.html” target=”_blank”>http://www.msrlm.org/mrlif/<wbr />faqenglish.html</a> The result from the page source is: <p><a href=”http://www.msrlm.org/mrlif/faqenglish.html” target=”_blank”>http://www.msrlm.org/mrlif/<wbr />faqenglish.html</a></p> Verify the site is using the latest WordPress version, Temporarily disable all plugins to rule out a plugin conflict, Switch themes to rule out … Read more