1497 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

What do you use to output posts on your home page?

9 posts
  • Has been part of the Envato Community for over 3 years
  • Located in Australia
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
smartsites1 says
I am just using some other standard WordPress queries that are all working and appearing. Here is an example of one of mine:
  <?php

// The Query

query_posts( 'cat=4&posts_per_page=3' );

// The Loop

while ( have_posts() ) : the_post();

?>

I can create a page template to test this code on and just changed the is_home and is_front_page call to is_user_logged_in.

9 posts
  • Has been part of the Envato Community for over 3 years
  • Located in Australia
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
smartsites1 says
In my error_log I am getting this message (I have replaced sensitive data with *):
[04-May-2013 14:16:09 UTC] PHP Notice:  Undefined variable: category_box_one in /home/***/public_html/wp-content/themes/***/index.php on line 20
[04-May-2013 14:16:09 UTC] PHP Notice:  Undefined variable: category_box_one in /home/***/public_html/wp-content/themes/***/index.php on line 20

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by