How to add support for category excerpts?
How to add support for category excerpts?
How to add support for category excerpts?
This happens when the image does not have a specific width/height. The image you try to load in your custom-post-type is too small (379x354px). So LinkedIn, Facebook or others will use the layout with the smaller image. Facebook says: Images that are at least 470×246 pixels will display as a rectangle with the title and … Read more
try running your code with a lower priority: add_action( ‘after_setup_theme’, ‘my_twentyeleven_setup’, 20 ); function my_twentyeleven_setup(){ add_theme_support(‘post-formats’, array( ‘aside’, ‘chat’, ‘gallery’, ‘image’, ‘link’, ‘quote’, ‘status’, ‘video’, ‘audio’, )); }
There is no specifier in your sprintf, so it won’t output anything. Try: sprintf(‘Views: %d’, get_PostViews(get_the_ID())), You may have to use %s instead, it depends what your get_PostViews function is returning.
This should get you going in the right direction. Not my solution, slightly modified from here. You’ll need to swap out your-post-type for the post type you’re using. function adjust_post_formats() { if (isset($_GET[‘post’])) { $post = get_post($_GET[‘post’]); if ($post) $post_type = $post->post_type; } elseif ( !isset($_GET[‘post_type’]) ) $post_type=”post”; elseif ( in_array( $_GET[‘post_type’], get_post_types( array(‘show_ui’ => … Read more
I make a mistake while making a function file. Its correct name is functions.php not function.php..
How to Restore using UpDraft is quite easy and you can follow this instruction carefully. https://www.youtube.com/watch?v=64S4S92v_0Q
Error 500 is very generic and can be caused by numerous underlying issues. Your first step should be locating error log for your hosting account or asking support to help with that. My weak guess would be that your file gets created with file permissions that are not secure enough to hosting configuration.
Chances are, the theme you are using does not take into account the Custom header settings when it puts in the Site Title and Description. I would suggest (if you are comfortable in PHP) creating a child theme (as described here) for your theme, then copy header.php into your child theme and remove/alter the area … Read more
Since you appear to be using Featured Images, replace this: <div class=”post-image”> <?php echo ravs_get_custom_image( get_post_thumbnail_id () ); ?> </div><!– end post-image –> with this: <div class=”post-image”> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( ‘custom-image’ ); } ?> </div> References Codex: has_post_thumbnail() the_post_thumbnail()