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
2 answers
display post by $_POST[date] in wordpress
I really need help for this problem in wordpress about displaying and filtering datas.
I have html in this form, so first i have two drop down list(DDL), which should be populated related to the date of the posts. First DDL it should contains all…

ah92
- 307
- 5
- 20
0
votes
1 answer
Get post content until read more Wordpress
I want to get content of a post until the read more that I set when I'm creating a new post, so far I'm able to get the content doing
apply_filters('the_content', $post->post_content);
I would like to get only until the Read More, I'm integrating a…

General Electric
- 1,176
- 3
- 21
- 44
0
votes
1 answer
Conditional CSS to display title on Blog only
I'm trying to hide the page title on ALL pages, except the Blog Roll.
If I make the following changes to the style.css, it will hide the title on all pages, including the blog roll:
h1 {
Display:none;
font-size: 48px;
margin: 33px…

level42
- 946
- 2
- 13
- 33
0
votes
1 answer
How to check if a post id is different in WordPress
In order to check if a post id exist, i do this :
if ('publish' == get_post_status ($post_id)) {
// do something
}
But how can i check if the id is different like in php :
if ($id != $var) {
//do stuff
}
What i am doing :
$post_id =…

Sébastien Gicquel
- 4,227
- 7
- 54
- 84
0
votes
2 answers
How to show WordPress admin menus in a custom dashboard widget?
I want to show WordPress administration menus in custom dashboard widgets. How to do it?

Nadeem Akram
- 195
- 1
- 1
- 7
0
votes
2 answers
Wordpress codex: php for URL of current user avatar
I was wondering if there is a way to get the URI/URL of the current logged-in user's avatar in wordpress? I found this as a way to generate a shortcode to insert the current user avatar using get_avatar (below php to be placed in theme…

Matt S
- 91
- 3
- 17
0
votes
1 answer
Standard wp_enqueue_script( 'jquery') doesn't load the script
I develop a plugin and I want use jquery-ui-datepicker. And now I have huge problem. If I use construction like this:
function FQ_init_method() {
wp_enqueue_script( 'Free_Quotationadmin1-script', plugins_url('js/jquery-2.0.2.min.js', __FILE__)…

kris_IV
- 2,396
- 21
- 42
0
votes
2 answers
Wordpress - display 3 recent posts from specific category
I have following code, that displays on home latest posts. How edit this code to display recent posts from specific category? Because I need to display posts from 3 categories (Hotels, Paths and Blog).

pobliska
- 237
- 1
- 4
- 13
0
votes
1 answer
How to change menu page position
In Wordpress , I have this sample theme options page, it appears under Appearance menu page but I want it to appear under a custom page (Live shot). I have an idea that I should change something in the add_settings_section( $id, $title, $callback,…

user1951739
- 135
- 1
- 9
0
votes
1 answer
Display content on first post of the month within a blogroll- Wordpress
What i am trying to do is create a timeline. What i want to happen is have the date echo in at the top of the first post of each month. So it will act like a separator to know now that the posts below are in this month.
Currently i am just querying…

Zackary Sketo
- 15
- 6
0
votes
1 answer
How to make Future Posts in Wordpress
I am working on WordPress Plugin and want to add scheduled post in my plugin. Can anyone share a sample code for how to do this?
I am using wp_insert_post() function for add post, I guess I have to modify parameters in this function.
…

Capripio
- 474
- 11
- 21
0
votes
1 answer
Reversing wordpress title tag
I would like to structure my title tags to display: Site Name | Page Title
According to the codex this should work:
but it is rendering in reverse: Page Title | Site Name
Any other…

Carey Estes
- 1,534
- 2
- 31
- 59
-1
votes
1 answer
How to set different inner page log in wordpress theme
I have purchased wordpress skilled theme for my development i want to know how to set different logo for different pages,
i have used transparent header with logo color white that's why i want to change inner pages logo's.
Link :- www.iihr.edu.in
-1
votes
1 answer
Removing the shopping cart from the menu from child theme functions.php
I am trying to remove the shopping cart from the parents theme via the child theme's functions.php file. I could easily remove it from the parent's functions.php but we all know that is a no-no. Besides, the option to put it back should be available…

LOTUSMS
- 10,317
- 15
- 71
- 140
-1
votes
2 answers
Weird image attributes when using get_the_post_thumbnail(wordpress development)
display the following image
Why is creating the attributes 1 and 0 by default ? any ideea ?
I have only defaults plugin installed
user1465831