tracyfh
Forum Replies Created
-
Forum: Themes and Templates
In reply to: On single posts, keep author from blog pageThanks for your reply. Maybe I have the code REALLY wrong.
I don’t want the author on the News page but I do on the Blog page. But when you click on that individual post – it doesn’t list the author from the blog page.
Forum: Themes and Templates
In reply to: Adding author not working….I meant, I was so HOPEFUL
It still just shows the word ‘by’. No author. And this is what I have no.
echo ‘<span class=”postdate serif”>’.date(“F j, Y”,strtotime($row[‘post_date’])).’by ‘; the_author_posts_link(); echo ‘</span>’;
Forum: Themes and Templates
In reply to: Adding author not working….Oh, I was so helpful.
It still just shows the word ‘by’. No author.
Forum: Themes and Templates
In reply to: News and Blog Archives, repeating the same articleI think it is all in my sidebar.php but I’m such a newbie. In fact, I’m so new that I don’t even know where else to go for help. But I need help.
Forum: Themes and Templates
In reply to: Adding Authorthanks, but it didn’t work. It only says the word ‘by’ now.
This is what I tried:
echo ‘<span class=”postdate serif”>’.date(“F j, Y”,strtotime($row[‘post_date’])).’by <?php the_author_posts_link(); ?></span>’;
Any more suggestions???
Forum: Themes and Templates
In reply to: Removing AuthorThank you so much for the help. Boo hoo, still not working. What I did was copy the code from freeriders and replaced it in the single.php file. So now it reads:
<span class=”postdate serif”><?php the_date(); ?>by
<?php
if(is_category(‘news’) || in_category(‘wellco-news’)){
/*Do nothing*/
}else{
the_author();
} ?></span>
But the author is still on the News page (where I don’t want it). Am I doing something wrong?
The newspage.php does have this author line in it:
$query = “SELECT p.*, u.*, r.*, p.id as post_id FROM wp_posts p LEFT JOIN wp_users u ON p.post_author = u.id LEFT JOIN wp_term_relationships r ON r.object_id = p.id WHERE p.post_status = ‘publish’ AND p.post_type=’post’ AND r.term_taxonomy_id=’3′ ORDER BY p.post_date DESC LIMIT 20”;the index.php also has a similar $query like that one.
Forum: Themes and Templates
In reply to: Removing Authorhmmm, Am I doing this right – I still need help but not sure if I have to re-post. This is my first time using WordPRess support.
Forum: Themes and Templates
In reply to: Removing Authorthank you for your reply, I appreciate it. I am just a grasshopper so trying to understand. Yes, I am using the same template.
Basically the only .php file that had the by
<?php the_author() ?>
was in the Single Post (single.php).So I modified it to this but it is still not working. Can you help more? Thanks.
<h2 class=”serif”>“><?php the_title(); ?></h2>
<span class=”postdate serif”><?php the_date(); ?>by <?php the_author(); ?></span>
<php
if(is_category(‘news’) || in_category(‘wellco-news’)){
/*Do nothing*/
}else{
echo ” by” . the_author();
} ?>