Posts by smartsites1

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
Nevide SAYS Wow, thank you very much i can rest more time and continue working on that theme later.
Hey Nevide, do you want to join forces on making a crowd-funding theme?
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
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

hmm, I tried that and nothing is still appearing…

Do multiple WP queries on one page conflict?

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
The output that is shown is
array(1) { [0]=> string(1) "5"
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

Ok, I tried that and nothing is appearing…but both statements are true ‘the option does exist’ and ‘it is the frontpage’. Where should I put that code for it to work? Do I need to add another function with it?

Thanks for the great help so far :grin:

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

So if my option was something like this:

if ( function_exists( 'ot_get_option' ) ) {
$category_box_one = ot_get_option( 'category_box_one' );
}

How would I then integrate it into your code above?

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

Thanks for the reply OriginalEXE, I am going to try it out now :)

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

Hello Everyone! I am building a new WordPress theme and I am using the WordPress ‘Option Tree’ plugin for the theme options area. I have created a setting in the theme options Labelled ‘Category Box 1’ with the id of ‘category_box_one’ and option type of ‘Category Select’ so with that I am trying to set up my theme so that whatever category the user selects for ‘Category Box 1’ in the theme options area is the category that will be used for a wp query in my index file and will output posts from the chosen category…..I have tried and tried and googled a soltuion to this but I am still not sure exactly how to set the wp query so that it can do this…..does anyone have any tips on what to do to accomplish this?

by
by
by
by
by
by