5672 readersYou're reading the RSS Feed of BP-Trick.com a tips and tricks community dedicated to making sharing BuddyPress knowledge easy!. We also sell Premium Themes! View the original post here: Feature Your Forums And Get Them Noticed!The forums on our Buddypress sites are the heart on soul of our communities, but how do we get them
5430 readersI’m all about tinkering with different ideas to display posts with WordPress. After all, it’s just a bunch of data at our fingertips! WordPress makes it easy to output whatever we need. Not long ago we experimented with making a Thumbnail Based Archives. Now let’s build a Randomized Grid Archives. 1. Create a page template,
Array readers
PHP
$options = array(
array( 'name' => 'thumbnail_size_w', 'value' => '150' ),
array( 'name' => 'thumbnail_size_h', 'value' => '150' ),
array( 'name' => 'medium_size_w', 'value' => '250' ),
array( 'name' => 'medium_size_h', 'value' => '250' ),
array( 'name' => 'large_size_w', 'value'
3251 readersIn otherwords, match what you see when creating/editing a Post or Page in the WordPress visual editor to what you get when you actually publish it. It’s easier than you might think! Basically you can declare a special CSS file that the visual editor will use to render itself while you are editing it. If
8211 readers
( example screenshot )PHP
add_action("admin_init", "pdf_init");
add_action('save_post', 'save_pdf_link');
function pdf_init(){
add_meta_box("my-pdf", "PDF Document", "pdf_link", "post", "normal", "low");
}
function pdf_link(){
global $post;
$custom = get_post_custom($post->ID);
$link = $custom["link"][0];
$count = 0;
echo '';
$query_pdf_args = array(
'post_type' => 'attachment',
'post_mime_type' =>'application/pdf',
'post_status' => 'inherit',
'posts_per_page' => -1,
);
$query_pdf = new WP_Query( $query_pdf_args );
$pdf = array();
echo '';
echo 'SELECT pdf FILE';
foreach ( $query_pdf->posts as $file) {
3180 readers
( example screenshot )PHP
function post_word_count() {
$count = 0;
$posts = get_posts( array(
'numberposts' => -1,
'post_type' => array( 'post', 'page' )
));
foreach( $posts as $post )
3419 readersThe default output for WordPress’ post_class template tag includes class names for just about every type of page view imaginable:
page-parent
search-results
logged-in
author
paged
Plus just about everything else except for category ID information. It gives some good category-specific class names, but nothing to represent the category ID. For example, including the post_class function like this in your markup:
<div <?php
3809 readersThe post_class() function in WordPress is pretty darn useful. It is used like this, in most templates, in a wrapping div of all the content you are outputting:
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<!-- Post stuff -->
</div>
I was in a circumstance where I wanted to add an additional class to what that
-
1571 readersBodega is a modern WordPress magazine style theme. Perfect for blogs/magazines writing about urban culture, action sports, movies, video games, music, fashion and many more.
Changelog
v1.0.1
fixed the search template (didn’t display search results previously)
changed menu font (was not sure about the font license)
Features
Widgetized homepage
Easily customizable Slider
Style Options with Custom style presetss
Get video thumbnails straight from YouTube
5449 readersIn WordPress, there are three ways to respond to a post: you can leave a comment, leave a trackback, or just link to the post to create a pingback. When displaying all of the responses to your posts, it’s a good idea to separate the comments from the pingbacks and trackbacks. Uninterrupted comment threads are