My new advanced WordPress course:
My new beginner WordPress course:
In this lesson we learn how to output the date (and control the formatting) as well as the author name and category.
To view a complete list of the WordPress lessons in sequential order visit:
Link to download .zip of theme files as shown in this video (note: this is not a “complete” WordPress theme yet and this download is only intended for educational purposes to dissect and review):
Sign up for my newsletter to receive periodic webDev tips, tricks, resources and coupons. Join the list at
Follow me on Twitter for updates and cat pics:
Nguồn: https://tracyhyde.net/
Xem thêm bài viết: https://tracyhyde.net/category/cong-nghe
How I can customize my entrymeta like yours… Where I can write this code on my WordPress site? Please help
I would have never come up with that in a thousand years.
Constantly being amazed by how simple WordPress is to manipulate. Manipulation being done by a well equipped manipulator who has categoric time on his hands.
Timely manipulation now being shown on the manipulated posts, .. that have been categorically filtered through a basic function of revered manipulation, and after watching that functionality being drawn out like it was: then I know for a fact that I'll never be a manipulating programmer.
This morose moribund manikin, .. is absolutely amazed by what can be done with a few lines of well placed code in the hands of a master manipulator.
Everyone: – these categorical courses are highly recommend for anyone else out there wanting to know more about timely Themed interventions.
I've learned more in an hour: than the last preceding days that found the moribund bumpkin stumbling blindly over these well hidden tutorials.
– More comments will raise their profiles.
Praise worthy comments at that.
the best teacher on youtube thanks
how to open the code screen
Hey, great job with the YouTube tutorials. You sold me on the advanced WordPress Udemy course. Thanks for the discount.
this is the best toturial
Excelent tutorial
Hi Brad, thank you for your nice tutorials. I want to translate the post meta data to chines language, How to that, please help?
great Brad. Got the answer from your old lecture. BTW <?php the_category(', ','' ); ?> surely will work, but the given example works great when you're using the output for Javascript and classes.
One thing I really am struggling to understand is what the hell is cat_name? Is it a function? It's the same with term_id… what the hell is it? I can't find anything online as to what it is or where to use it, it's driving me nuts… these things are so illusive they're only referenced in stack overflow queries but never explained what they are, sure it gets the category name but is there an API filled with a list of these things? I have no real point of reference as to how to use them or if there are MORE terms like these that need to be used elsewhere.
how I can add author image as meta data on category blog view.
awesome tutorial brad ..i am loving it .good luck
Why their is a "." before = in : $output. =
This is all code that you need for this chapter.
<p class="post-info"><?php the_time('F j, Y g:i a'); ?> | by <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( get_the_author() ); ?>"><?php the_author(); ?></a>Posted in <?php the_category(', ','' ); ?></p>
https://developer.wordpress.org/reference/functions/get_author_posts_url/#source
Can anyone give me some guidance on why my Post Styles aren't affecting my page?
My code looks like this right now:
/* Post Styles */
.post h2 {
margin-bottom: 0;
}
p.post-info {
font-size: 87%;
color: #999;
}
p.post-info a:link,
p.post-info a:visited {
color: #999;
}
Any suggestions would be greatly appreciated!
Great series, easy to follow and understand and very well presented – very professional.
I was finding WP theme coding tough going until I came across this series. Keep up the good work.
Great tutorial, as per usual! I think I'm really starting to get a grip on wordpress theme development thanks to you.
Anyone know why my styles aren't working for post-info?
7 dislikes only because 7 people missed the like button
Lol, stupid WordPress. What was wrong with standard notation mmm/dd/yyyy…
would u plz tell me in foreach($categories as $category) loop why echo outside of curly bracket
Great tutorial ! But when i open the codes in firefox(at the end of this tutorial) it renders fine(for date,author, posted,etc with small letters and dark light color, same as in this tutorial) but when i open the same link with same code in chrome it does not not render as in firefox? Any suggestion why this is happening?
hi Brad please help!!!! i am having troubles with the margin-bottom: 0; mine still has a significant amount of space in between….
I've found that the comma isn't being trimmed. It seems that the $seperator =", " is adding something to the end of it – pssibly nbsp. Changing trim($output, $seperator) to trim($output, ', ') removes it even though $seperator = ", ";
Here in 2017. Great stuff man!
your lesson are amazing but for this one if may I suggest an update.
WordPress has become easier I guess so I solved the problem in just one line I hope I'm not wrong.
<p class="post-info"><?php the_time('F jS, Y ');?> | by <a><?php the_author_posts_link(); ?></a> | Posted in <?php the_category(', ','' ); ?></p>
<?php the_content();?>
I hope it will be useful for people like me the are just at the beginning.
thanks again for your work.
I'm not sure if anybody still reads these but I'm getting access denied when clicking on the author link. Can someone help me with that?
Your tutorials are awesome, better than any others I've seen on these topics. Thanks!
this series of wp tutorials are really greatly helpful. want more….
I haven't tried other tutorials, but judging by the comments in all the videos yours are the best ones. I'm very lucky I landed on yours right away. So thorough and very understandable. I'm enjoying the process of building the site step-by-step even though I sometimes spend a couple of days trying to figure out where a mistake lies. Thank you Brad!!
Hello Brad,
Quick question. When you write the code to get the category information starting on line 13, should we be extracting this functionality into a function inside the functions.php file or is it fine to keep it in this file? I assume we won't be re-using this code block elsewhere so I assume it is fine as-is, but I was just curious what the best practices would be in this and similar cases. Thanks and loving the series so far!
Your tutorials are amazing. Thanks!
Thank you so much for this wonderful turorial series.
This is what i am searching for. thank you so much ,Great job 🙂
the_category() will do the same thing and will display as a link , I really do not know , if I am making a mistak or that is also okay ?
the_author_posts_link: will basically do the same thing?
Why should we not use this function?
This is the best tutorial. I find your technical communication to be spot on. I'm almost all the way through your series, working and learning as I go, and thus far this is the most comprehensive yet noob-friendly tutorial series on ground-up php for WordPress. Everyone could stand to learn a lot from the way you introduce and walk through the content. Thank you so much for doing this series.
love ur tutorial bro, this can help me a lot
offtopic but its kinda funny to see that the first video of this tutorial has like 500 000 views and this one has 50 000.
Thank you very much for these awesome tutorials. You are an outstanding teacher and I am so grateful you have shared your knowledge. I am learning fast. 😊
Your tutorials are awesome, and I don't say that lightly. I'm leaning FAST and implementing my new knowledge by building themes and plugins for my own websites. THANKS!!!
Hi im new to wordpress i just want to ask i have the url location correct but it does'nt display a thing its just a blank page.
Great work Nikola, this is the best course about WP ever !
is there a possibilty to Donate for your work ?
I just found out that:
– The WHOLE array codes can be simply replace with– the_category(', '); — including the commas and removing comma at the end.
– Also the author link can be echo-ed by simply using the_author_posts_link();
Hope that helps.