biggupp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Modify Link in excerptThank you. Found the code below. What do I need to modify for the ‘promos’ category?
function twentyeleven_continue_reading_link() { return ' <a href="events.php">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; }
Forum: Fixing WordPress
In reply to: Modify Link in excerptSorry, meant to include the code:
<div id="globalcontent"> <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=8'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2 style="color:#FFFFFF; background:url(https://ahy4life.com/images/right_top_header.jpg) no-repeat left top;"><center><a href="promos.php"><?php the_title(); ?></a></center></h2> <div> <style type="text/css"> div a{ color:#FFFFFF; } </style> <?php the_excerpt(); ?> <?php endwhile; ?> </div> </div> <div><img src="images/right_top_footer.jpg" alt="" /></div> <div style="background-color: #FFF;"></div>
[please review how to properly mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code
the above code is partially broken/corrupted.]Forum: Fixing WordPress
In reply to: Pull Excerpt from Specific CategoryThank you
Forum: Fixing WordPress
In reply to: Pull Excerpt from Specific CategoryThe live site functions properly, irrespective of the them on which it is based. The mod I am trying to make is based on the existing structure.
Forum: Fixing WordPress
In reply to: Pull Excerpt from Specific CategoryThe live site <https://www.ahy4life.com/events.php> functions properly with only one category. Not sure how theme template plays a role at this point, but I it is “Twenty Eleven.”
Forum: Fixing WordPress
In reply to: Pull Excerpt from Specific CategoryWhy, then, do I only see ‘Please visit later.” This is the code the site is using presently. Would mod’g this be a better way to go?
[mod: please read the forum guidelines about marking code: https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h1><a href="promos.php"><font color="#FFFFFF"> <?php if( in_category( '8' ) ) { the_title();?> </font></a></h1> <div> <a href="promos.php"> <?php the_excerpt(); } ?> </a> </div> <?php endwhile; else: ?> <p> <?php _e('Sorry, please visit us later.'); ?> </p> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Need Help to Pull from Specific CategoryOK, I am trying to set up query using the code below for
<https://www.ahy4life.com/update_20121008/events.php>
for the category ‘new_event’ cat=5, but still not working.
<?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=5'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2><center><a>"><?php the_title(); ?></center></a></h2> <?php the_content(); ?> <?php endwhile; ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
What am I missing here?
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Fixing WordPress
In reply to: Proper Code to Display Posts from Specific CategoriesCan’t get it to quite work. I admit I am a bit of a novice with WP.
Is there not a way to simply specify the category in the existing code?Forum: Fixing WordPress
In reply to: Need to Change Excerpt Text from Black to WhiteNot sure what changed, but seems OK today. Will take a look at FireBug, too.
Thanks!
Forum: Fixing WordPress
In reply to: Garbage Characters appear in Post but not on Admin PageWe tried multiple ways, including typing in directly, & also copy/paste from Word. Not sure what changed, but seems OK today.
Thanks!
Forum: Fixing WordPress
In reply to: Categories Loading Improperlyhttps://ahy4life.com/test2/index2.php
Alright, I am trying to start fresh using the_excerpt and the_title using the code below. But there is a “0” that keeps appearing. How can I fix this?
‘
<?php
$category = get_the_category();
echo $category[5]->event-long_description;
?><?php the_title();?>
‘Forum: Fixing WordPress
In reply to: Categories Loading ImproperlyI am trying a new tac using the_excerpt . Pls standby
Forum: Fixing WordPress
In reply to: Categories Loading ImproperlyYeah, I think the protest is censoring this willy-nilly. Time to end censorship. Thanks again for the hand.
Forum: Fixing WordPress
In reply to: Categories Loading ImproperlyThis code, actually (maybe the SOPA protest is affecting this). Otherwise, pls look at the page itself for the code:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: Categories Loading ImproperlyTried that with the code below. No difference. What am I missing?
[Code moderated as per the Forum Rules. Please use the pastebin]