Used for questions about Wordpress ( from https://codex.wordpress.org/ : WordPress Codex, the online manual for WordPress and a living repository for WordPress information and documentation)
Questions tagged [codex]
80 questions
0
votes
1 answer
Wordpress Query by custom date filed
Can someone show me how to do this, I have a query I'm using to display custom posts and using WP Facet for the query, by a custom field date, I got this far to order the posts by date in Ascending order, but the last thing I want to do is only show…

DJP2019
- 69
- 2
- 9
0
votes
1 answer
Set temporary variables for current logged in user in WordPress
If my user can login from different browsers, concurrently, how can I save a temporary variable (a special format random variable or a device specific id) for each session and access it later in codex?
I can't use update_user_meta and get_user_meta,…

AVEbrahimi
- 17,993
- 23
- 107
- 210
0
votes
0 answers
Custom post type archive with date condition
Am using The7 Theme. Since I wanted to create a NEWS section to post latest news (apart from the Blog, which is separate), I used the Custom Post Type UI plugin to create a custom post type named news
I created a new file in my child theme, by…

Vpp Man
- 2,384
- 8
- 43
- 74
0
votes
1 answer
How to display private (or draft) Wordpress blog post outside blog
I would like WordPress to use as a edit tool and my website as a renderer, but don't want to posts created for website display on my blog. So I did this on my website:
created private post
put on website this:
define('WP_USE_THEMES',…

Tom Smykowski
- 25,487
- 54
- 159
- 236
0
votes
1 answer
Link one Portfolio Gallery URL to another by way of Custom Query in WP
I would like to link a Visual Portfolio Gallery to another gallery filter by way of querying particular custom post types. I have already tried custom queries in the lines of post_type="post, cubeportfolio" since I will be referencing all posts from…

john zuh
- 59
- 1
- 11
0
votes
2 answers
Listing comments by author else not working
I have a code that listing comments by author. I use it in author.php. It list comments perfectly but if the author has no comments it shows other authors comment links.
the code
get_the_author_meta('ID'),
…

dogankirnaz
- 27
- 9
0
votes
2 answers
Cannot access custom admin menu page WordPress
I've been trying to register custom admin menu using the following code
function bbtre_register_admin_page(){
add_menu_page('Revenue Share Settings', 'Reshare', 'manage_options', 'reshare-settings',…

Kimsea Sok
- 140
- 2
- 13
0
votes
1 answer
When Single User Logged In One Wordpress Site then user can automatically Logged-in other User's related site
I want Multisite Wordpress Network.In which when user login in one site then there are option for login in particulate this user's related sites.
And If User login in one site.(on subdomain) User also able to login there other sites. with some link…

MageDev
- 271
- 1
- 7
- 27
0
votes
1 answer
wordpress display the navbar menu item vertically
This is Y code of header.php but I can't understand why wp_nav_menu give me a vertical menu.
This is my code of header.php
0
votes
0 answers
Adding a row class loop for bootstrap implementation in woocommerce
I'm bootstrapping a woocommerce site and I am stuck. Below is my code in the content-product_cat.php file
>

LOTUSMS
- 10,317
- 15
- 71
- 140
0
votes
0 answers
Place shortcode in php template file
this has been discussed before however it's not working for me. As the shortcode seems to be a mix of regular and open-close shortcode. Or a combination of nested shortcodes.
// Use shortcode in a PHP file (outside the post editor).
echo…

Patrick
- 3
- 5
0
votes
1 answer
Deregister all styles and scripts from a certain Wordpress plugin
i want to wp_deregister all styles and scripts from a certain plugin.
For example
$plugin = getAllStyles('PLUGIN-NAME');
foreach ($plugin as $value) {
wp_deregister_style($value);
}
$plugin = getAllScripts('PLUGIN-NAME');
foreach…

Peter
- 11,413
- 31
- 100
- 152
0
votes
1 answer
WordPress minify JS & CSS with minit
I'm not good wordpress developer.
I want to use minit plugin with redux framework. I’ve added minify js, minify css options on my theme option panel. If i enable minify js option, theme minify only js files, if i enable minify css option, theme…
0
votes
1 answer
wordpress remove "Pages" from wp_list_pages
Here's my code:
$Xpost->ID,
'title-li' => ""
);
wp_list_pages($args);
?>
And yet…
user47143
- 65
- 2
- 9
0
votes
2 answers
What does the value of '%5$s' mean within Wordpress category listing?
I'm currently editing a Wordpress multisite to remove/repair a broken link. The index page lists all the posts from all of the child blogs, as tiles, on the homepage. The link that is applied to the author's name is incorrect.
I've tracked it down…

Ryan Coolwebs
- 1,611
- 5
- 22
- 44