Комментарии:
Great video! if you can't add the thumbnail field, just put * add_theme_support('post-thumbnails'); * out of the setup function!
Ответитьvery useful
ОтветитьReally good Tutorial!
ОтветитьDoes anyone have 2018 updates?
ОтветитьMy image is huge, any way to downsize it?
Ответитьyou have thumbnail feature on bootstrap..
ОтветитьThanks, you are the best
ОтветитьI was very disappointed that this course is out of date. The materials is not correct so this course has a lot of bugs that hard to solve for begginer.Of course I understand that main trend today is using reactive frameworks, but unfortunately I have to learn wordpress.
So, i just wanted to know about your main course for building wordpress theme: does it still sutable for modern wordpress theme development?
I noticed when I insert the code for the thumbnail the sidebar section keeps dropping to the bottom even though I am not even adding an image to the post. Also, when I do add an image to the post it will not fit into the dimensions for the blog thumbnail. Here is my code:
{code}
<main role="main" class="container">
<div class="row">
<div class="col-md-8 blog-main">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="blog-post">
<div class="post_thumbnail">
<?php if(has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
</div>
<?php endif; ?>
<h2 class="blog-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="blog-post-meta"><?php the_date(); ?> by <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a></p>
<?php the_excerpt(); ?>
</div><!-- /.blog-post -->
<?php endwhile; ?>
<?php else : ?>
<p><?php __('No Posts Found') ?></p>
<?php endif; ?>
</div><!-- /.blog-main -->
{/code}
And here is the CSS for the thumbnail:
{code}
.post_thumbnail img{
width: 100% !important;
height: auto !important;
margin-bottom: 20px !important;
}
{/code}
I've tried the CSS with and without the !important. Also, I am using Bootstrap 4.1 and I cannot change a lot of the Bootstrap CSS. Any help would be appreciated.
my wp_bootstrap_navwalker is not working as i mean the dropdown is not coming could you just help me out in that
ОтветитьUnable to create directory wp-content/uploads/2017/11. Is its parent directory writable by the server? -- Has anybody gotten this error when trying to upload a pic?
Ответитьhi,great,first Thank you for this training and other , but many way in review (team review ) wrong,for example add title tag in in header.php,
talk about it, if is posible
my images do not resize. I am using dreamweaver CC 2017. in the live view of dreamweaver, the images resized, however when I open it on google chrome, it doesn't. What is happening? -.-
ОтветитьFeatured image is not showing on my pages only posts, any ideas guys?
ОтветитьThanks for tut. Menu works only "on click" not on hover.
ОтветитьPLEASE HELP!
ubuntu localhost error: Unable to create directory wp-content/uploads/. Is its parent directory writable by the server?
This is where I hit my first problem. The style.css file seem to only style the header and nothing more. I can't change anything else and therefore not the img size of the thumbnails.
ОтветитьWhere can I learn all the wordpress specific php tags and functions. How long will it take to get comfortable with it?
ОтветитьGREAT VIDEO!
Fix if Blog's not showing up:
Issue: You have your front page set to a static page.
Fix: You have a Static web page as your home page, change it to None or -- SELECT -- under =Themes==Customize Front page to -- Select -- to remove the static page or 'Your Latest Posts'.
Please help, I did everything identically to what you did and my posts don't display at all. Doesn't say that threre are none either. I don't know what is going on :(
ОтветитьIf i just wanna show Latest post on home page and the rest of the post on Posts page .. can it be possible .. ???
ОтветитьIf anybody is wondering why their thumbnail post feature is not working try: add_theme_support( 'post-thumbnails', array( 'post', 'custom-type' ) );
ОтветитьReally dig your tutorials man... I like the fast pace and skill level. Thank You for putting these up!
ОтветитьI added add_theme_support('post-thumbnails'); and the post have an option of the featured post but when I try to upload an image it simply fails. Gives me an error. I tried going into the media section and tried uploading photos there but that too failed. Any idea how to resolve this?
ОтветитьI'm using your code for the main loop, but I can't seem to pull the posts.
Ответитьadd_theme_support, why did you name it "Post Thumbnails"? Can I call it anything I want?
Ответить