Last active
December 5, 2017 08:01
-
-
Save GuilhermeBarile/802314 to your computer and use it in GitHub Desktop.
Wordpress code snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
query_posts(array('post_type' => array('video', 'galeria'), 'posts_per_page' => 10)); | |
include ABSPATH.'/wp-includes/feed-rss2.php'; | |
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$text = apply_filters('the_excerpt', get_post_field('post_excerpt', $post_id)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://www.blogger.com/blog_this.pyra?t=<?php echo urlencode(get_the_title()) ?>&u=<?php echo urlencode(get_permalink()) ?>&n=<?php echo urlencode(get_the_excerpt()) ?>" class="blogger" title="Blogger">Blogger</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://twitter.com/home?status=<?php echo urlencode(get_permalink()) ?>" class="twitter" title="Twitter">Twitter</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment