Posts are the core of WordPress. They store content, are categorized, and are expansible with meta. Posts are grouped by post type, and within their post type by taxonomy (though a taxonomy can span more than one post type).

learn more… | top users | synonyms (2)

0
votes
2answers
65 views

Skip posts, but keep posts per page

I'm running through a normal loop on one of my templates, and it displays a list of upcoming events with dates. I'd like the events that have passed to stay active, but not appear in my list of posts. ...
0
votes
1answer
16 views

Comments as part of a post

Is there a way to show comments as part of a post, and not adding it with comments_template()?
0
votes
1answer
19 views

Hidden Some Setting on Post or Page [duplicate]

I'm using Advanced Custom Fields, but i want to remove this (in the red mark) from non-admin, what plugins to disable this? Thanks.
1
vote
0answers
94 views

get post content of particular post by url

I want to get the post content of particular post using Curl or any other methods from third party website is it possible? As the structure remains the same <entry-content> i guess there ...
0
votes
1answer
123 views

Related posts display randomly by tag

I would like to ask that what code should i add in order to make my related posts by tag to display randomly? I got this code from somewhere else. <?php $orig_post = $post; global $post; $tags = ...
0
votes
0answers
20 views

Unable to uncheck a category in a post

I've created a post and I've checked the 'Jobs' category, but when I save the post, the 'News' category gets automatically checked, as well as the jobs category. It's seemingly impossible stop this ...
0
votes
0answers
20 views

How to tag posts under menu items without showing posts titles?

right to the point. How do I 'link' posts to menu titles so once someone clicks on the menu title all the posts that I tagged there show up? I do not want that each post's title show up (when ...
0
votes
0answers
25 views

Sticking a post or page to the top of all WordPress pages, posts, index pages, etc

I'm trying to add the same common content (like an announcement, banner, or slider) to the top of all WordPress pages, posts, category archives, etc. Standard WordPress sticky posts are displayed only ...
0
votes
1answer
62 views

Display only one post each WEEK

I have custom post type named 'NEWS' where i already published 52 posts at a time. Now, in front i would like to display them ONE NEWS for ONE WEEK. So 52 NEWS will cover one year for me. My ...
0
votes
0answers
93 views

Custom post type as HTML/PHP table

I have a custom page which displays some WP members (students) using $wpdb to query the database and display these members in a HTML table. This table gets generated (populated with records) when the ...
0
votes
2answers
62 views

Why aren't paragraphs breaking on this page?

This page is created using a recent posts shortcode included with my theme. It is not displaying paragraph breaks that I've added in the editor and I'd like it to. How can I get the shortcode to ...
-1
votes
1answer
14 views

Disable Author Box on Homepage & on Pages

I have added an Authorbox code in my entry.php between codes of post & comments. But the authorbox is being displayed also on pages & homepages . Any solution , to make it visible only on ...
0
votes
0answers
24 views

Click on link to filter displayed posts like what we can see on products page

**I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that ...
0
votes
0answers
28 views

Custom Permalink Post with meta value

I would like to use two metabox values in order to build the permalinks for all posts (standard post type of wordpress). But after rewriting the permalink, it links to a page that contains a part of ...
0
votes
0answers
21 views

Show posts from specific categories in a set page and some cosmetic modifications

So I'm trying to make a gallery-site for a friend's art as a hobby/learning project, and so far I've chosen a theme that I liked and modified it to fit the content I wanted to upload. But ...
0
votes
1answer
74 views

Wordpress loop not working on static front page

I have a static wordpress front page. I want the code that works on my regular blog template to work on the homepage too. Currently, it only shows one post. The code in the main index.php is this... ...
0
votes
0answers
22 views

Filter displaying posts

I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that by ...
0
votes
1answer
35 views

get query() without post content?

Is there a way to get query with post information (thumbnails, id, etc.) but without the_content()? I already have plugin to show recent posts in sidebars at homepage and when it is for example 20 ...
0
votes
1answer
28 views

Getting a list of the published posts

I would like to get a list of the posts published in WP in every category with the published date and the last modified date. I've tried to achieve this result through a Plugin but it's completely ...
0
votes
1answer
31 views

How to relate 3 wordpress components with each other (Create database relationships)

Alright, so I have these 3 website parts: Gallery (that has) Artist Place A gallery can have only one artist and one place An artist can have many galleries A place can have many galleries When I ...
0
votes
2answers
36 views

Exclude post category in a blog page

I have two links in "news" where all the news posts goes "blog" where the rest goes just wanted to exclude the category "news" in the blog page I use the code $news = new WP_query ...
0
votes
0answers
13 views

How to allow a “contributor” to restore a delete post?

I have a user with "contributor" role attached. When I log in as this user, go to posts section and try to restore deleted posts, Wordpress shows this message: "You are not allowed to restore this ...
0
votes
0answers
46 views

order posts with conditions & meta_key merge

i want a code to orders my blog posts using a "conditions" & combinaisons of 2 meta_key so details: if ( postviews < 20 views in exmple) ==> those posts order with date ==> here ...
0
votes
0answers
73 views

Custom post type permalink throws a 404 error

I am new to WordPress and trying to build a social networking site that has Buddypress installed and one CPT. This website has a custom post type for user blogs, this CPT has posts that are linked to ...
0
votes
0answers
44 views

Total Post type count display wrong, any idea?

Why are the total number of posts not the same? Any suggestions?
0
votes
0answers
39 views

Calculate top authors on the basis of Post Views

I wanted to calculate the Top authors on the single.php page according to the average of the posts views. I have created a function which is calculating the average of the total post views of a ...
0
votes
1answer
50 views

Show posts on front page only

I have a carousel that I want to be posted on the front page only but for some reason the code is not working. The conditional statement <?php if ( is_home() ) : ?> <div ...
0
votes
1answer
20 views

Link to date_query results in Wordpress

I have this line of code: $args = array( 'date_query' => array( array( 'after' => 'January 1st, 2015', 'before' => 'February 15th, 2015', ...
0
votes
2answers
71 views

How to get images only attached from edit post page

I have developed a custom wordpress panel with a custom front-end recently. In single post pages there is a slider. I display the result of get_attached_media( 'image' ) function as the images of ...
0
votes
0answers
56 views

Adding css class to post and styling it

I am new to wordpress development, and I am using the Customizr Theme I am trying to add a CSS class into my wordpress post in order to incorporate styles into it but I am having difficulty finding ...
0
votes
0answers
43 views

Custom post type not showing in wp_posts table in database using navicat or PHPmyadmin

This is really weird. I created a custom post type and saved a few posts using it. Then I managed to edit and update them. When I came to look in the database for the rows I cant find them. I used ...
0
votes
1answer
46 views

Custom Post Status & Taxonomies

I have successfully registered my custom post types, custom post statuses and my custom taxonomies/terms. All is working fine but... It seems that both the 'categories' column within the custom post ...
-2
votes
1answer
51 views

If meta_key exists then don't select this post?

I'm trying to select all posts EXCEPT ones with a meta_key somekey. SELECT * FROM wp_posts JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE meta_key != 'somekey' But this is still ...
0
votes
1answer
61 views

WP_Query in functions.php overrides global $post object, even with wp_reset_query()

I've written a function that grabs all posts that are drafts and puts them as a dropdown in my toolbar for easy access to complete. This works just fine. The problem is that it seems to mess with my ...
0
votes
0answers
36 views

How to parse a post and change the way a gallery item is rendered?

I want to use this plugin http://final-tiles-gallery.com/index.html to display the gallery the users insert in their posts, for that I need to use an specific HTML structure so the plugin works, I've ...
0
votes
0answers
17 views

Loop a Custom Post Pagination

I am having a little trouble trying to get my custom post type pagination to loop. The idea to my pagination is to only display a next field with the title of the next post. Once you hit the last post ...
0
votes
1answer
36 views

Allowing Users to Delete Their Posts

I'm trying to allow users to delete their posts, and I'm trying to do that with the; $or_pid = get_the_ID(); if(isset($_REQUEST['p_id']) && $_REQUEST['p_id']>0){ ...
0
votes
0answers
20 views

call post via ajax [duplicate]

I want to call my post or post url via ajax. Currently I call in iframe. The reason I want to show ajax instead of iframe is because with ajax, I can make responsive layout easily. My iframe url is. ...
0
votes
0answers
11 views

How to create a hook that can give points for either how many pages viewed by user, or pages viewed by a user's posts?

I started a blog recently and I liked the achievements idea. I installed two plugins both which I like, one is called Achievements and the other is called WordPoints. Specifically, I would like to ...
0
votes
0answers
16 views

Empty result when trying to fetc post in the future

I am trying to fetch a single post that is either scheduled or published using a custom WP Query. The query is running asynchronously. However I get no results. Here is my code: ... $args = array( ...
0
votes
0answers
54 views

How to add pagination into post showing

I have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; ...
0
votes
1answer
85 views

how to remove entry meta from wordpress archive category and change its display

I'm working with the Bootstrap Child Theme on WordPress. My problem is that I want to remove the entry meta - like posted on date by admin - and also want to change the display of all these posts, but ...
0
votes
3answers
94 views

How to add a class to links inside posts text

Is it possible to add a class to links created with the link button in the posts editor of wordpress. If not is there a plugin that allow me to do that? Thanks in advance
0
votes
0answers
19 views

Custom post type - cannot link custom template to it in my plugin

I have created a custom post type called "syndication" in my plug-in and that all works as it should. However, I want to provide a custom template for the "add" option so I created a file in my plugin ...
0
votes
2answers
39 views

How to Use index.php file for “Blog” Page And this is Not a Home Page

I Created a Page(from Pages -> Add New) Called "Blog" when click the "Blog" menu in header I want to display the posts from default post not Custom Post Type How to do this ?
0
votes
0answers
110 views

How to get all tags of a custom post type by id

simple question, how to get all tags of a custom post type by id? post_type=product. i have tried with http://codex.wordpress.org/Function_Reference/wp_get_post_tags in my post loop and the print_r ...
0
votes
1answer
79 views

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: "published", "draft" and so on) and one of them is "project closed". I need to hide/exclude by default from post list in the backend ...
0
votes
0answers
21 views

How can users subscribe to searches

How to allow users to subscribe to search queries (for example a user search on the website, using the search form, for "green apples"), and send daily email alert to subscribers when new posts appear ...
1
vote
0answers
30 views

Using $wpdb to fetch posts with meta data

I have a post type "shows" with 500 posts in it. I want to list all 400 in one page listing their title + 5 meta fields and a url to the show post thumbnail. I initially went the classic wordpress ...
0
votes
1answer
131 views

I want to send push notification just after publish a new post

I would like to send push messages from my website to iOs/android users everytime I publish a new post. Which would be the same as execute php code I think. I have tried to paste a php script which ...