Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* Remove Featured Image in Post by Specific Category */ function remove_featured_image_post_by_category( $output, $post_id ) { $list_category_by_slug = array( 'uncategorized', 'video' ); $category_post_have = get_the_category( $post_id ); foreach ( $category_post_have as $post_category ) { if ( in_array( $post_category->slug, $list_category_by_slug ) ) { return ''; } } return $output; } add_filter( 'jnews_featured_image', 'remove_featured_image_post_by_category', 10, 2 );
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)