How to display post meta bellow every posts

Getting and displaying the categories within your posts loop can be done for example like this, $categories = get_the_category(); if ( $categories ) { $cat_links=””; foreach ( $categories as $category ) { $cat_links .= sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/346001/%s”>%s</a>’, esc_url( get_category_link( $category->term_id ) ), esc_html( $category->name ) ); } printf( ‘<div class=”categories”><span class=”title”>%s</span>%s</div>’, esc_html__( ‘Categories:’, ‘text-domain’ ), … Read more

Font .woff files loaded don’t correspond to the displayed styles [closed]

Don’t know why but this solved the problem @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunrm.woff’); } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunti.woff’); font-style: italic; } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunbx.woff’); font-weight: bold; } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunbi.woff’); font-weight: bold; font-style: italic; }

New Styles Not Rendering On Mobile Phone and Tablet

Can you see the changes in an incognito window on mobile? If so, then its most likely a mobile cache issue and a common way to fix that is by adding a version number to your css file i.e. wp_enqueue_style( ‘my-main-styles’, get_stylesheet_directory_uri() . ‘/style’ . $suffix . ‘.css’, array(), $version_number_here ); If breaking the cache … Read more

Cannot add a class to metabox

You didn’t mention the library you’re using to generate this meta, but i guess it’s the cmb2 library, if it’s so then you should change your array params as follow : array( ‘label’ => esc_html__( ‘Property Lot Size’, ‘zoacres’ ), ‘desc’ => esc_html__( ‘Enter lot size of property by number. Do not use any special … Read more

How to remove padding from left&right side

Instead of setting up margin/padding. Try setting up max-width of full-container a <div> next to site-main: body.responsive.layout-full #page-wrapper .full-container { max-width: 95%; margin-left: auto; margin-right: auto; } You can change max-width to your desired percentage value.