adamgay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesThanks a bunch. The require() function wasn’t working properly with the file as .html, but it was with it as .php. The other site is .html, so I’m not sure why it’s different here.
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesI’m not getting any errors. Just to be sure, I enabled error logging, but still no errors.
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesI’m not entirely sure if it is or not.
How would I go about turning error reporting on for this particular situation?
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesCould it be a problem with something on my server, or with my database?
I have it set up EXACTLY like the working site, yet it still will not display anything. WordPress by itself, is working properly, the back-end and front-end. I just can’t get anything to show up in my page.
I’m especially getting a bit angry that it’s got the same code and set-up as my other site, and it won’t work.
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesThis isn’t a template. It’s something I put together, and the blog header is in a different directory. I had to put the full path in my other page to get it working, so I’m guessing it’s the same case here.
As far as the design, and how things are displayed, the way I’m setting it up is how the client wants it. Unfortunately I can’t change his mind, he’s kinda stubborn.
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesI’m confused…
query_posts() is being used in my code. I’ve tried it at the top, and just before The Loop. It’s in my code above, and it was in the original code I posted.
According to the WordPress Docs, $category_name is a valid variable for the query_posts() function, so it can’t be the way it’s being used, unless it needs to be in a different location. If that is the case, I need to know where. There’s nothing specifying that’s the problem, though.
I’ve also tried using get_posts(), but my results are the same.
Forum: Fixing WordPress
In reply to: Problems displaying specific categoriesAccording to that page, I needed to change the get_header() function to the require() function. Even after I did that, it’s not working.
I’ve even tried to get the page to just grab the newest posts, and it still doesn’t grab anything. I’ve got another site set-up almost identical to this, and it works flawlessly, what am I doing wrong?
EDIT:
Here’s the updated code:<?php require('/var/www/jettvettes.com/public/blog/wp-blog-header.php'); query_posts('category_name=vettessold';) ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="welcome" class="post"> <h2 class="title"><?php the_title(); ?></h2> <h3 class="date"><?php the_date(); ?> Posted by <?php the_author(); ?></h3> <div class="story"> <?php the_content(); ?> </div> </div> <?php endwhile; else: ?> <?php _e('Sorry, nothing here for you right now. Check beck later!'); ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: WordPress integrated into my home pageAwesome, thanks!
Forum: Themes and Templates
In reply to: Customized display of LATEST 3 POSTSThanks for posting this code.
As I’ve been sitting here messing with it, and trying to get the content to show up I finally found something that works!
<?php the_content(); ?>
That function only works inside of “The Loop.” I’m sure the same goes for the_excerpt()
After I applied that concept, everything worked. The only problem I had after adding the loop was everything showing up twice. To fix that, just take out the foreach() function, and change the $myposts variable to $post. Voila! Works like a charm.