Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Pages are static, timeless content that are unique from the regular blog chronology.
1
vote
how avoid the link of the current post in the menu in the sidebar?
you can try this code. the first filter is to customise the widget arguments and the second filter is in the menu generation.
add_filter("widget_nav_menu_args", function ($nav_menu_args, $nav_menu, $ …
1
vote
Is there a way to schedule changes to a page?
you can do this with a shortcode like this
add_shortcode("custom_text_se282078", function ($attr, $content, $tag) {
$result = "";
if (date_i18n("H") > $attr["time"]) {
$result = $at …
1
vote
Creating php pages in wordpress and assigning them to wordpress pages
MahdiY just explain that you can use PHP in your template like that
<?php
/*
Template Name: news
*/
get_header();
?>
<div id="primary" class="content-area">
<div id="content" class="sit …
1
vote
Accepted
Do action only on certain front end pages?
to test if you are on specific page, you just need to test the identifier like that :
add_action("wp_head", function () {
$idPageToTest = 32867;
if ( isset($GLOBALS["post"])
&& …
1
vote
Accepted
Menu position (admin menu) of pages
you cannot put this on position 5 because there is something but you can put it on 4.5 with this code :
add_action("admin_menu", function () {
$GLOBALS["menu"][4.5] = $GLOBALS["menu"][20];
…
0
votes
How do I hide single category post on my post page
try category__not_in
$query = new WP_Query( array(
'numberposts' => 6,
'offset' => 0,
"category__not_in" => 148,
) );
you will see more options here : https://codex.wordpress.org/Class …