rssolo23
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exclude all posts from homepage.Here’s what you can do…
You can modify index.php and remove the loop that generates blog posts. I personally wouldn’t recommend going that route only because the purpose of the index.php file is to display posts.
So the way to go around that is to make a *copy* of index.php and rename it to page-homepage.php (or whatever you desire). Set the homepage to that file (see fonglh’s post above), and strip out the loop code. Voila.
There may be better methods out there…
Forum: Fixing WordPress
In reply to: Problem with PicturesHave you checked in your Media section to see if the photos are stored there? This should be located on the left-hand side of your Dashboard when you first log into WordPress.
I’m just confirming that updating to PHP 5 resolved the issue with me, too. Luckily I didn’t have to downgrade.
Thanks GBWorld for making an awesome plugin 🙂
Forum: Networking WordPress
In reply to: Multisite Slug question — simple but complex?It seems like he’s using SQL to pull the information directly from the database.
I found this function to work just fine:
<?php get_blog_option( $blog['blog_id'], 'siteurl' ); ?>so we simply place it as:
<li><a href="<?php echo get_blog_option( $blog['blog_id'], 'siteurl' ); ?>/services/p1">Service 1</a></li> <li><a href="<?php echo get_blog_option( $blog['blog_id'], 'siteurl' ); ?>/services/p2">Service 2</a></li> <li><a href="<?php echo get_blog_option( $blog['blog_id'], 'siteurl' ); ?>/services/p3">Service 3</a></li> <li><a href="<?php echo get_blog_option( $blog['blog_id'], 'siteurl' ); ?>/services/p3">Service 4</a></li>and now if we click through the different sites (global, san diego, los angeles, etc..) we should see the URL of those links work properly. It doesn’t necessarily turn it into a slug, but it does the job exactly how I need it.
Thanks again for all your help 🙂
Forum: Networking WordPress
In reply to: Multisite Slug question — simple but complex?PS: I’m open to using PHP conditional statements and having more than one include file… but if I can avoid it, I’d prefer to do so.
Forum: Networking WordPress
In reply to: Couple questions about Multisite (beginner questions)Awesome, thank you for the tips and all your help. I didn’t realize I’ve been implementing Permalinks wrong this whole time.
I’ll take your advice and try to display the top blog titles from RSS feeds.
Thanks again!
Forum: Fixing WordPress
In reply to: Making Custom Fields work on Home PageI noticed that my custom fields show up if I put them directly underneath
<?php query_posts(‘posts_per_page=3’); ?>However, they won’t show up anywhere else on the page. Maybe I have to create a new custom query for the second section?
**HERE’S WHAT I’M TRYING TO ACHIEVE**
http://www.haciendadevega.com/haciendadevega.com/
“The Blurb” pulls posts from the blog.
“News and Events” is strictly modified through Custom Fields Template when editing the page “Home Page”.Forum: Fixing WordPress
In reply to: Making Custom Fields work on Home PageHere’s my settings:
Static Front Page: “Home Page” (a page I created)
Posts Page: — Select — (not assigned)In the same home.php, I have a post section:
<?php query_posts('posts_per_page=3'); ?> <ul class="recent"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> <div class="more"> <a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>">Read More</a> </div> </li> <?php endwhile; ?> <?php endif; ?>And the section where the custom fields are needed (this doesn’t run off posts):
<li> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/<?php echo get_post_meta($post->ID, 'Icon 1', true) ?>.png" border="0" width="48" height="48" alt="" class="fltlt" /> <h2><?php echo get_post_meta($post->ID, 'Heading 1', true) ?></h2> <p> <?php echo get_post_meta($post->ID, 'Text 1', true) ?> </p> </li>I think I just tracked the source of the problem by having a loop already in place for posts, but I’m still confused as to where to go from here…