Sorry for late reply, already fixed, i miss understood about array, so here the code that completely run as i want it.
<?php
$next_post = get_next_post();
next_post_link('%link',
get_the_post_thumbnail($next_post->ID, 'prev_next_img', array(
'class' => 'rounded-lg object-fill w-full max-h-full'
)) . '<h4 class="text-center mt-2 lg:text-base text-sm no-underline text-black leading-snug font-medium">%title</h4>',
false);
?>
in function.php
i put custome image size
add_image_size('prev_next_img', 370, 270, true);
Related Posts:
- How to specify a class added to my gallery
- Get parent category class in post_class()
- Duplicate attribute class causing site validation error
- Layer post title on top of image WordPress featured thumbnail image
- Output terms to post_class()
- Redirect to another page using contact form 7? [closed]
- Image getting out of container [closed]
- post_class not working with css
- Using post_class to style posts indivdually
- How to add animation the featured image?
- Add second background-image on hover
- How to change the color of an svg element?
- How to implement max-font-size?
- @Media min-width & max-width
- How do I center this form in css?
- How can I replace text with CSS?
- Bootstrap 4, How do I center-align a button?
- What does an asterisk (*) do in a CSS selector?
- height style property doesn’t work in div elements
- combined multiple classes into one css rule
- CSS Outside Border
- Is there an opposite to display:none?
- Rainbow gradient on text in CSS
- CSS3 opacity gradient?
- use multiple css filters at the same time?
- font-weight is not working properly?
- What would be the best method to code heading/title for ul or ol, Like we have caption in table?
- How can I make my header image properly responsive?
- CSS fixed width in a span
- Adding border to CSS triangle [duplicate]
- Remove wp_add_inline_style
- WordPress Register Style Called Incorrectly
- Duplicate and alter sidebar for Twenty Eleven
- How to dequeue styles coming from plugins?
- How to exclude certain code from style.css? [closed]
- Need Help Figuring Out Admin Menu Hover Styling Class
- How to decrease picture size
- whats happening with my index page?
- Change via CSS the color of social menu icons
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- Header’s CSS doesn’t work in Chrome and Opera – any ideas how to fix it?
- @media in bluehost is being commented out [closed]
- Twenty Fifteen : Wider right column for the content
- css file status 403
- How can I get the search form to be selected automatically?
- Adding Custom css file
- Using transient for dynamic css , how to name it?
- Change CSS on a wordpress post
- Unstable handling of CSS under WordPress/Elementor
- Trying to hide a button on a specific WordPress Page ID
- get_template_directory_uri() generates wrong path
- How to change the settings of a video? [closed]
- Change text color dynamically in WordPress [closed]
- First element/selector of enqueued CSS file breaks
- Different background for different page
- calling an additional css and js links for a custom page template
- Styling last item in ul [closed]
- How to change color of some items through css [closed]
- Remove custom css made by the custom theme
- Font styling in embedded Twitter feed
- Is there any way we can restore the “Additional CSS” after being erased?
- sidebar with hovering mouse effect
- Default paragraph block styles just for pages NOT for posts?
- Custom Gutenberg color classes naming convention
- Loading a stylesheet conditionally & verifying CSS
- Dequeue styles with query doesn’t work
- child-theme style not changing on localhost
- Gutenberg CSS Issue
- When changing theme’s font, why does font-size attribute not work? [duplicate]
- Hide BBPress create topic on one page
- Dropdown contents hidden behind content [closed]
- How to change specific menu tab from left to right in My Home Theme?
- Twenty Fourteen: Unsticky header after making header bigger
- How to display javascript banner in website header?
- Loading css files conditionally useful?
- Sidebar at bottom however I have completely replaced theme folder back to original code
- Site not 100% responsive
- Dropdown menu’s fighting with each other [closed]
- Customizer: CSS changes not persistent
- Move both sidebars more to their sides [closed]
- Scale An Image Thumbnail
- Which hook to use to add notification message at beginning of my
- single.php doesn’t getting style
- Theme looks ugly – FOUC – stylesheets loaded in footer
- How to make widgetized footer styles be inherited from body?
- custom css in admin panel by user id
- How to customize a theme’s navigation menu with css
- Site layout problems when logged in due to admin bar
- Add “sub-nav” class to a sub menu parent item
- Current Post/Page Ancestor, CSS
- How to target only one element if more elements share the same CSS class
- Custom css code in wordpress [closed]
- Using Easy Google Fonts correctly and Droid Sans on Max OS X [closed]
- remove white overlay [closed]
- Why doesn’t media(max-width) work on h2 title?
- Narrow paragraph block aligned to left of “wrapper”
- Transparent Overlay for Gravity Forms Ajax Spinner
- Remove the main title, but only from the main page
- aos properties ‘invalid’ and not recognised when included as a css class [closed]
- ACF Extended : Disable styles in front [closed]