sudo find . -print | grep -i '.*[.]php' … [Continue reading]
Multilingual WordPress
First thing you need to do is install and activate the Polylang plugin. Upon activation, you need to visit Settings » Languages to configure the plugin. The language settings page is divided into three tabs. The first tab is labeled‘Languages’. … [Continue reading]
Get The First Image From a Post
Let's say you wanted to use the post thumbnail feature of WordPress, but had a whole archive of posts that would take too much time to go through. For new posts, you can be specific and use the feature as intended. For old posts, you just want to use … [Continue reading]
Facebook “Like” Button for WordPress
Some very easy copy-and-paste code here to add to the template for blog posts to allow for Facebook "liking" of the article. Probably best in the single.php template underneath where it outputs the content of the post. <iframe … [Continue reading]
Embed a Page inside a Page
<?php $recent = new WP_Query("page_id=**ID**"); while($recent->have_posts()) : $recent->the_post();?> <h3><?php the_title(); ?></h3> <?php the_content(); ?> <?php endwhile; ?> The above code … [Continue reading]
- « Previous Page
- 1
- …
- 3
- 4
- 5
- 6
- 7
- …
- 20
- Next Page »