Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
WP-Trik: Cara Menyembunyikan Kategori di HOME
pusatdata
Oct 14th, 2016
104
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
function exclude_category_home( $query ) {
if ( $query->is_home ) {
$query->set( 'cat', '-5, -34' );
}
return $query;
}
add_filter( 'pre_get_posts', 'exclude_category_home' );
Add Comment
Please,
Sign In
to add comment
Public Pastes
SQL - Introduction to Aggregation and Subquer...
PostgreSQL | 36 min ago | 3.04 KB
Untitled
JSON | 39 min ago | 2.08 KB
snowybot python
JavaScript | 48 min ago | 2.97 KB
python
JavaScript | 50 min ago | 0.08 KB
Untitled
HTML | 1 hour ago | 0.43 KB
Untitled
Bash | 1 hour ago | 1.61 KB
Select2 Ajax Value Preselected/Selected Value...
JavaScript | 2 hours ago | 0.31 KB
Stargate Coords
Lua | 4 hours ago | 1.13 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!