Wordpress Theme With Bootstrap [4] - Main Post Loop

Wordpress Theme With Bootstrap [4] - Main Post Loop

Traversy Media

8 лет назад

67,858 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@thatguywhoplayschess5283
@thatguywhoplayschess5283 - 01.04.2020 14:40

Great video! if you can't add the thumbnail field, just put * add_theme_support('post-thumbnails'); * out of the setup function!

Ответить
@user-fv3vf5wo9p
@user-fv3vf5wo9p - 27.03.2020 16:36

very useful

Ответить
@brandonwildhaber4025
@brandonwildhaber4025 - 27.06.2019 12:35

Really good Tutorial!

Ответить
@johnjim3741
@johnjim3741 - 13.12.2018 22:37

Does anyone have 2018 updates?

Ответить
@johnjim3741
@johnjim3741 - 13.12.2018 22:36

My image is huge, any way to downsize it?

Ответить
@crazyidea9143
@crazyidea9143 - 28.10.2018 19:00

you have thumbnail feature on bootstrap..

Ответить
@souadsahli945
@souadsahli945 - 14.08.2018 14:50

Thanks, you are the best

Ответить
@userasdsd
@userasdsd - 01.08.2018 13:35

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?

Ответить
@gmanpublications
@gmanpublications - 21.07.2018 22:08

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.

Ответить
@pallavigondane5977
@pallavigondane5977 - 08.03.2018 12:50

my wp_bootstrap_navwalker is not working as i mean the dropdown is not coming could you just help me out in that

Ответить
@edenweb370
@edenweb370 - 25.11.2017 21:19

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?

Ответить
@dariushzamani-ir
@dariushzamani-ir - 12.10.2017 18:54

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

Ответить
@SabedoriaParaSucesso
@SabedoriaParaSucesso - 02.05.2017 02:03

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? -.-

Ответить
@WhyCMD
@WhyCMD - 07.04.2017 15:05

Featured image is not showing on my pages only posts, any ideas guys?

Ответить
@martinstreiff1120
@martinstreiff1120 - 11.01.2017 20:51

Thanks for tut. Menu works only "on click" not on hover.

Ответить
@eltacemiraslanov1782
@eltacemiraslanov1782 - 02.01.2017 15:56

PLEASE HELP!

ubuntu localhost error: Unable to create directory wp-content/uploads/. Is its parent directory writable by the server?

Ответить
@LarsIvarHenriksen
@LarsIvarHenriksen - 29.12.2016 14:29

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.

Ответить
@Abh19021
@Abh19021 - 07.11.2016 16:14

Where can I learn all the wordpress specific php tags and functions. How long will it take to get comfortable with it?

Ответить
@yonishaidari998
@yonishaidari998 - 16.09.2016 08:46

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'.

Ответить
@Monika6ish
@Monika6ish - 07.09.2016 20:11

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 :(

Ответить
@wasimahmed8576
@wasimahmed8576 - 03.09.2016 12:58

If i just wanna show Latest post on home page and the rest of the post on Posts page .. can it be possible .. ???

Ответить
@abdulmaajied
@abdulmaajied - 26.08.2016 00:49

If anybody is wondering why their thumbnail post feature is not working try: add_theme_support( 'post-thumbnails', array( 'post', 'custom-type' ) );

Ответить
@norcal6181
@norcal6181 - 05.08.2016 07:16

Really dig your tutorials man... I like the fast pace and skill level. Thank You for putting these up!

Ответить
@harrygambhir9983
@harrygambhir9983 - 31.05.2016 14:06

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?

Ответить
@darrenbachan9272
@darrenbachan9272 - 29.05.2016 09:07

I'm using your code for the main loop, but I can't seem to pull the posts.

Ответить
@darrenbachan9272
@darrenbachan9272 - 26.05.2016 20:22

add_theme_support, why did you name it "Post Thumbnails"? Can I call it anything I want?

Ответить