soleman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need Help Displaying Image Side by Side Category Image CallFixed it with this:
<?php query_posts(‘cat=3&showposts=3’); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php endwhile; endif; ?>
Forum: Fixing WordPress
In reply to: Category Showing Same Content On Every PageI figured it out…. stupid ass mistake on my part.
Forum: Fixing WordPress
In reply to: Category Showing Same Content On Every PageAh man – for some reason now it isn’t working….!
Now the 2nd page just doesn’t work at all –
The first page works perfectly:
http://solecollector.com/live/rumors/page/2/http://solecollector.com/live/rumors/
The second page doesn’t at all:
http://solecollector.com/live/rumors/page/2/
<div class=”grid_8″>
<div id=”blog” class=”widget”><h3 id=”news”>The Rumors</h3>
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$args= array(
‘cat’ => 836,
‘showposts’ => 7,
‘paged’ => $paged
);
query_posts($args);
if (have_posts()) :
$counter = 0; $counter2 = 0;
while (have_posts()) : the_post();
$counter++;
?><div class=”grid_8 <?php if ($counter == 2) { echo ‘alpha’; } elseif($counter == 1){ echo ‘omega’; $counter = 0; } ?>”>
<div class=”fix” style=”margin-right:10px;”></div>
<div class=”box”><?php $rumor = get_post_meta($post->ID, ‘rumorlink’, true); ?>
<div class=”footerlinks2″>
” href=”<?php echo $rumor; ?>” rel=”bookmark”><?php echo $rumor; ?></div class=”footerlinks2″>
<p><h8><?php echo strip_tags(get_the_excerpt(), ‘‘); ?></h8></p>
</div><!– / #box –>
</div><!– / #grid_4 –>
<?php if ($counter == 0) { ?><div class=”fix” style=”margin-bottom:20px;”></div><?php } ?>
<?php endwhile; ?>
<?php else: ?>
<p>No posts yet.</p>
<?php endif; ?>
</div><!– / #blog –>
<?php if (function_exists(‘wp_pagenavi’)) { ?>
<?php wp_pagenavi(); ?>
<?php } else if (function_exists(‘pagination’)) { ?>
<?php pagination(); ?>
<?php } else { ?><div class=”navigation”>
<div class=”alignleft”>
<?php next_posts_link(__(‘Previous Entries’,’wpfolio_xl’)); ?>
</div>
<div class=”alignright”>
<?php previous_posts_link(__(‘Next Entries’,’wpfolio_xl’)); ?>
</div>
</div>
<?php } ; ?></div><!– / #grid_8 –>
Forum: Fixing WordPress
In reply to: Category Showing Same Content On Every PageAh man – thanks!
Here is what I put in:
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$args= array(
‘cat’ => 836,
‘showposts’ => 3,
‘paged’ => $paged
);
query_posts($args);if (have_posts()) :
$counter = 0; $counter2 = 0;
while (have_posts()) : the_post();
$counter++;
?>
Forum: Fixing WordPress
In reply to: Permalink Bug? Permalinks Totally Hosed! 2.8.4Hola?
Forum: Fixing WordPress
In reply to: Permalink Bug? Permalinks Totally Hosed! 2.8.4This is what sucks about not paying for tech support – you never know if your question is going to be answered. I’d rather pay something to get things fixed sooner than later…..
Forum: Fixing WordPress
In reply to: Permalink Bug? Permalinks Totally Hosed! 2.8.4Class – anyone? Anyone?
Forum: Fixing WordPress
In reply to: Permalink Bug? Permalinks Totally Hosed! 2.8.4Any ideas? Really have things hosed right now.
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?Again – sickness! Thanks!
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?One last item – how would I put an else statement in there? I tried it and it didn’t work… and it sure seems easy. Just want the else to be this:
<p class=”post_meta”><span class=”date”>Posted on <?php the_time(‘F jS, Y’) ?></span></p>
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?Got it working perfectly. Thanks for everyone’s hep – I really appreciate it.
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?^ Dude- ! That worked great – !
Thanks man –
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?Sorry that I’m not being clear – here are the two main reasons I need to put the code in the custom fields (unless someone can think of a better way and then I could say “I could have had a V-8”.
I have 100+ posts that I want people to have access to through a drop down menu (this is the code that activates the drop down menu: <?php echo ddpl_list(Cat#); ?> ). But I don’t want this on every page – and – the pages I do want it on it has to have a specific category #.
The second reason I need to put the code in the custom fields is that I want a specific text file access via php get file. There are multiple posts that need show the contents of different files. 100 posts need to present X file wile 50 posts need to present Y file.
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?^ It came up as a “1.”! So it is working.
Any idea how I can get this: <?php echo ddpl_list(#); ?>
into select posts using this?
Forum: Fixing WordPress
In reply to: Can You Put PHP Code In Custom Field?I am figuring it out some – but here is my problem –
I’m trying to have editors insert this line of code <?php echo ddpl_list(1); ?> only on certain posts – so I thought the custom tags was the ticket. I don’t see any plugin that will do this either. I see ones that go into sidebars and I can put those on the pages as well – but I don’t wan them on all pages.