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
/** Show Primary Category for All Posts on Post Block widget */ function jkit_show_primary_category_on_post_block_for_all_post( $category_id, $post_id ) { if ( ! empty( $category_id ) ) { return $category_id; } $categories = array_slice( get_the_category( $post_id ), 0, 1 ); if ( empty( $categories ) ) { return null; } $category = array_shift( $categories ); $category_id = $category->term_id; return $category_id; } add_filter( 'jeg_primary_category', 'jkit_show_primary_category_on_post_block_for_all_post', 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)