Skip to content Skip to tags Skip to twitter news Skip to blog roll Skip to categories Skip to archives Skip to recent posts

Content Mixx: a WordPress Plugin

3 Comments

The concept behind Content Mixx is pretty simple, it takes in a few agruments and spits out records that match those agruments in a random order.

Arguments the it takes in:

  1. (String) from: possible values and post or page
  2. (Integer) numberposts: how many records do you want back
  3. (Integer) categories: what categories do you want to grab from separated by a comma
  4. (Integer) exclude: what categories do you want to not grab from separated by a comma

Basic Usage

  1. contentmixx ( 'from=post&numberposts=2&categories=8' )

Use in sidebar

  1. <?php
  2.     $myposts = contentmixx( 'from=post&numberposts=2&categories=8' );
  3.     foreach( $myposts as $post ) {
  4.         setup_postdata( $post );
  5. ?>
  6.         <div class="sideBarPost">
  7.             <h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
  8.             <p><?php the_excerpt(); ?></p>
  9.             <p><a href="<?php the_permalink() ?>">Read More...</a></p>
  10.         </div>
  11. <?php
  12.     }
  13. ?>

Use in content area

  1. <?php
  2.     $results = contentmixx('numberposts=3');
  3.     foreach($results as $post) :
  4.         setup_postdata($post);
  5. ?>
  6.         <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
  7.         <?php the_content(); ?>
  8. <?php endforeach; ?>

The Download

back to beginning of this post back to skip to links

3 Responses to “Content Mixx: a WordPress Plugin”

Could this plugin display subpages of a certain page from a totally different page? Or did I missunderstand something?

Iva,
That is not set up, but I can do that tonight if that is something you need?

Trackbacks

  1. ?? » Blog Archive » Wordpress????

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
For the pretty code styles do: [css][/css], [php][/php], [js][/js], [html][/html] or just about any other language, just use its abbreviation .


Learn from my mistakes, I got burnt by the flame, you don't have to.


RSS Feed Link My Hosting of Choice

64 queries. 0.423 seconds. Powered by WordPress visitor stats