beradmin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display more posts for categories than on index.phpI was trying to make my Archive list show more than the default number of posts and I found a simple answer. You might be able to use the same idea in your homepage but to list less instead of more posts.
Where: http://codex.wordpress.org/Template_Tags/query_posts
How to: Place a call to query_posts() in one of your Template files before The Loop begins. The wp_query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category). If you want to preserve that information, you can use the $query_string global variable in the call to query_posts().
E.g. My default is 3 posts. So I included query_posts() in my Archive template by changing
<?php if (have_posts()) : ?>
to
<?php query_posts('posts_per_page=10'); if (have_posts()) : ?>And it worked.
So try to keep 10 or 15 posts as your default number and add
<?php query_posts('posts_per_page=2'); if (have_posts()) : ?>to your homepage.Cool!! I found the answer:
<?php if((get_post_meta($post->ID, “artistMenu”, true))) { ?>
<div id=”artistMenu”>
<?php echo get_post_meta($post->ID, “artistMenu”, true); ?>
</div>
<?php } ?>Have a look @ http://www.designisphilosophy.com/tutorials/using-conditional-custom-fields-for-advanced-layouts-20081219/
Forum: Fixing WordPress
In reply to: WordPress automatically deletes all HTML image map codeMe again… I kind of solved the problem. I “cheated”. I create a table aligned to the right I put the embedded media inside the table. Since Explore didn’t read the cell-padding I added a column to the left of the table. 🙂
Forum: Fixing WordPress
In reply to: WordPress automatically deletes all HTML image map codeHi guys, I am editing a wordpress.org page/post and I always switch to HTML mode to edit my code. And I am having the same problem. Is it for the same reason as .com, keep their servers safe and working?
I am inserting a embedded media (Flash) that is aligned to the right. It works fine in Firefox but it doesn’t in Explorer. The media stays on the left side and all the text shows up underneath it. I even set up the publishing setting in Flash to align to the right but Explorer just ignores it.
Then I tryed to change the <object… code in HTML mode but when I change back to VIEW mode or publish it WordPress keeps changing my code back, or modifying to a weird code. I even tryed to put the <object.. in beteween <div align=center></div> but them WordPress change <div align=center> to <div> and put a <p></p> after </div>…
Forum: Fixing WordPress
In reply to: How to add image to a page using custom fieldYou are great! THANKS!!!!!
Forum: Fixing WordPress
In reply to: How to add image to a page using custom fieldThat is great! Thanks so much. I was getting really frustrated.
Only one more thing. There is a little box showing up in all pages because of the custom_image class. What ‘if’ code should I add so the page displays the image only if I add that custom field? Thanks 🙂