How to display the category featured images [closed]
The solution I found so far was to add featured image for categories as a custom field using ACF and then using the category ID to find and display each featured image. Hope it helps anyone 🙂
The solution I found so far was to add featured image for categories as a custom field using ACF and then using the category ID to find and display each featured image. Hope it helps anyone 🙂
What you’re looking for is the theme customizer. This allows you to attach settings to any element of your site you want. Just take a look at one of the WordPress standard themes to see what this looks like. You’ll see that you can change colors, but also upload a new background image. Just follow … Read more
WordPress already provides a built-in mechanism for navigating collections of posts called “Archives”. Taxonomies such as “Category” naturally create a collection of posts – and thus WordPress automatically facilitates taxonomy archives. Meanwhile, pages are intended to display singular, definitive content that is usually timeless. It sounds to me as though your “Topics” should be top-level … Read more
You need to make sure that your css goes between style tags. Try changing this line: .btn { background-color:<?php echo esc_attr($btn_color);?>; } <?php to <style>.btn { background-color:<?php echo esc_attr($btn_color);?>;</style> } <?php
You put the accordion inside the loop, that’s why it is not working as you want. Try this: <?php $args = array( ‘post_type’ => ‘review’ ); $the_query = new WP_Query($args); ?> <div class=”row mb-5″> <div class=”col-md-9″> <div id=”accordion” role=”tablist” aria-multiselectable=”true”> <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : ?> <?php $the_query->the_post(); ?> … Read more
It is facebook social graph cache. I’ve cleared it on debug linter and everything fine now. https://developers.facebook.com/tools/debug/ You can clear cache automatically via Facebook Graph Api: POST /?id={object-instance-id or object-url}&scrape=true More info here: https://developers.facebook.com/docs/sharing/opengraph/using-objects
Put this code in functions.php file and check it. function theme_add_bootstrap() { wp_enqueue_style( ‘bootstrap-css’, get_template_directory_uri() . ‘/bootstrap/css/bootstrap.min.css’ ); wp_enqueue_style( ‘style-css’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/bootstrap/js/bootstrap.min.js’, array( ‘jquery’ ), ‘3.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘theme_add_bootstrap’ );
I would personally go for using a class to apply colour rather than an inline stylesheet. This way if you need to change the colour being applied to the list element then you can just that once in the class and every list element will show the correct colour, otherwise you need to go through … Read more
The way you’ve ‘deployed’ this is very unconventional. You should have just set your post page to be the ‘News’ page. However, to answer your question. In appearance > menus > select menu you would like to edit, you can use something known as custom links, in which you can then add the same title … Read more
Your problem might be coming from the font of the theme. Try using a different font on your site.