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
1answer
35 views

How can I group posts by date on frontpage?

For example; 20 September 2014 Post 1 Post 2 Post 3 19 September 2014 Post 1 Post 2 Post 3 18 September 2014 Post 1 Post 2
2
votes
2answers
69 views

Where is the old post permalink slug stored?

I published an article with permalink slug: http://domain.com/writing Then after publishing, I changed the permalink slug to writing-lorem. Now, whenever I visit /writing, it redirects to ...
2
votes
1answer
47 views

Limit function to specific post category

I have a function that wraps images in a custom div. It's placed in functions.php and modifies all posts. I'd like to know if there's a way to only apply it to posts in a certain category. Here's ...
0
votes
0answers
35 views

unwanted redirect on saving custom post type / custom post not saving

I've added (or at least attempted to add) a custom post type that has a custom meta box allowing a file to be attached to the post. This function has been spotty at best, allowing some files to be ...
0
votes
1answer
42 views

Add category attribute to custom recent post shortcode

I have a recent post shortcode to display a custom post. Everything works fine so far. However, I would like to add a category attribute so I can specify which category to display. My working code is ...
2
votes
2answers
74 views

Get user's most published categories

I am working on listing all users similar to the Users page here on SE. When listing each user, I want to add their 2 categories they have published most into. All categories are within Posts. ...
0
votes
1answer
71 views

How To Remove Certain category Posts From the Blog Page

I'd like to know, Is there any ways to remove certain category posts from the blog page. Actually, I own a technology blog and I'd like to implement free software directory or marketplace in my blog ...
0
votes
0answers
16 views

Limit categories visible

How could you limit the categories displayed for a certain role when adding a new post? I would like to only list a few categories, but would rather not prevent them from seeing these categories ...
0
votes
1answer
51 views

How to modify specific parts of a post content in WordPress

I'm trying to insert some custom code in each post in Wordpress, provided that it complies wit certain conditions. My problem is that the content needs to be added in an specific location that is not ...
0
votes
0answers
17 views

Determining the table that posts belong to in a multisite setting

I am currently running a multisite and I would like to display posts from other sites in a site. To do this, I wanted to use AJAX so that when I click on the post it does not get redirected to the ...
0
votes
1answer
63 views

is_page() and is_page_template() not being differentiated

I need to rearrange how my comments are displayed depending on the page template. My posts and standard pages are displayed in in the middle of the screen, and thus need to share the same comment ...
0
votes
0answers
18 views

Submitting a post with no title or content gives success message “Post Published”

When you add a new post in WordPress and don't fill in anything then press publish, you get a success message saying "Post Published!" I believe this is because of the auto-draft feature in WordPress ...
5
votes
2answers
271 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
0
votes
1answer
35 views

How do post IDs work in WordPress?

So I have 2 blog posts so far and the first one has ID 8 and second one has ID 12. How exactly does WordPress count those IDs? What if I want to change ID 8 and ID 12 to ID 1 and ID 2? I have some ...
2
votes
1answer
56 views

Show the author's count of total amount of posts assign to a custom taxonomy term

I have assigned a custom taxonomy named Highlight to posts and I have added a term to it named Featured.  Whenever I want to feature a post, I simply assign it to featured.  To each author, I want ...
3
votes
1answer
124 views

How can you make sure authors' posts are longer than 250 words?

I'm making a website that authors can sign up to and write articles. However I don't want low quality posts submitted. So, firstly I want the posts to be not empty and to be longer than 250 words. ...
0
votes
0answers
15 views

Pulling Total Count or all post ID's

The following code displays the amount of supporters each of my authors has with my wordpress site. I am trying to display the total supporters on the home page for the whole entire website. I ...
0
votes
1answer
12 views

How do I allow my post to update it's date every week

I'm using the Eventure theme for WordPress and I'm trying to make my posts recur. I want it so that I can add a post with it's date, where I can set the iterations where the post is updated. I don't ...
1
vote
3answers
79 views

Adding Custom Taxonomy to WordPress default Post type

I am trying to add custom taxonomy (tags) to WordPress default post type. because I wanna use that taxonomy for custom post type as well. // Register Custom Taxonomy function tag_synchro() { $labels ...
0
votes
0answers
58 views

Remove inline width and height definitions from post images (single.php)

I have exported around 300 posts out of Blogger and into WordPress. The posts are mostly made up of images as it’s a fashion blog. Everything went great import-wise but the problem is that all images ...
1
vote
1answer
37 views

Rewriting WordPress core functionallity: Changing the private posts

I'm trying to rewrite a bit of core WordPress functionality. I'm using WordPress 3.9.2 and I consider myself an intermediate in WordPress programming. This is an image that will explain what I am ...
0
votes
1answer
147 views

Make a vertical dynamic list of posts in alphabetically order and in columns [closed]

I have a page that lists all the posts from a given category of an custom post type dynamically. I do this with a plugin that list posts and a shortcod and with css i created 9 columns where they are ...
0
votes
0answers
17 views

Wordpress Popular posts by view with time range

I am using this code provided here to display popular posts by views count. Code found here http://www.wpbeginner.com/wp-tutorials/how-to-track-popular-posts-by-views-in-wordpress-without-a-plugin/ ...
0
votes
3answers
14 views

An array of latest wp_titles

I want to get the latest titles with the_title() in an array so that I can loop through them in my javascript function. How can I create this array? Many thanks!
1
vote
1answer
46 views

I'm having some issues with previous_post_link() and next_post_link()

I've been developing a Wordpress site lately and have come across an issue. I need the user to be able to navigate between posts, I'm using the standard Wordpress functions previous_post_link() and ...
0
votes
0answers
29 views

Wordpress Media URLs?

I just launched a Wordpress site after having done all of the standard procedures: moved the uploads folder, uploaded the database, and did a search and replace on all of the urls in the database. ...
0
votes
2answers
18 views

If Specific Post, Link Elsewhere

I would like to create a conditional statement that checks the loop for a specific post ID, then if true, it outputs a link elsewhere. This is what I have so far: <?php ...
0
votes
0answers
16 views

Sticky wp_dropdown_categories on Front End Form

I have built a front end posting form and I am trying to make the entire form sticky. I have used wp_dropdown_categories but I can not seem to figure out how to make it remember the selection if there ...
0
votes
0answers
103 views

Changing max number of blog posts per-page doesn't work

I've change my "Setting" > "Posts and comments" > "Show the most" to 20 , but still home page only show 2 posts and go next page's sometimes show 3 or 4 posts , please help. Sorry for bad english !
0
votes
0answers
73 views

Add icon near meta box title in posts/pages

I'm trying to add some "help icon" that will be use to show "help text" with the help of the tooltip or pointers to admin section. Now I'm trying to understand how can I add in the posts/pages in ...
0
votes
0answers
28 views

connecting two post types or functions

Alright, so I have started asking related questions to this bout 4 times now trying to figure out what exactly I need to ask without making it too complicated. So I've got two examples of this that ...
6
votes
1answer
169 views

Inject post (from specific category) between posts in Loop

I would like to add a post (from specific category) between posts in the WordPress Loop (such as 'Sponsors'). Example: P P P S P P S P P S P P How can I achieve this? I am a beginner with coding, so ...
0
votes
1answer
24 views

How to change the publishing date of each posts? [duplicate]

I need to set the publishing date of many posts with the post date (the creation date). I know that I can do it editing the single post and changing the Published on value but this procedure is ...
0
votes
1answer
38 views

Change Author Name to Sitename on Frontend

How can I change the author name on the frontend to be the sitename instead without modifying theme? I am basically looking for something that I can package as plugin on my site that will no longer ...
0
votes
0answers
23 views

How to handle this problem related to the publishing date of imported posts?

I have the following situation that I have to handle: I imported some posts from an old custom blog (not WordPress, a custom blog made using ASP). I exported in CSV format the content of the table ...
0
votes
1answer
21 views

What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?

I have the following doubt related to the posts table of the WordPress database. I see that when I create a new post in this table are automatically created 2 new rows. 32 1 2014-08-16 15:07:22 ...
0
votes
0answers
28 views

Get next post in category with AJAX?

I need a simple solution to load the next post in the category of the current post (in a custom single.php) with AJAX once the reader scrolls to the bottom of the page. I'm using a custom theme. ...
0
votes
1answer
28 views

Include post on external custom site

How do I include single post ( I mean image, title, and a bit of text ) on my own custom site? I have wp in subdirectory and I just want to make "Recent article" box on my site. I was looking for it 2 ...
0
votes
1answer
17 views

Why when I create a new post I found 2 record related to this post into the posts database table?

I am very new in WordPress development and I have a doubt about the WP database table named posts I have observe that when I create a new post (into the WP administration panel) are created 2 record ...
0
votes
0answers
11 views

Where is stored the Publish date value for a post?

I have to do a massive change in the database and I need to know in what field of what table is stored the publish date value of a post. Using phpMyAdmin I see that each record into the wp_posts ...
0
votes
1answer
34 views

Serialize $_POST global in wordpress

I'm new here in the community, and I would like to ask if it is best practice to do this in Wordpress? maybe_serialize( $_POST ); and then store it to the db? I'm a newbie in using Wordpress, so ...
1
vote
1answer
30 views

wp_insert_posts add title with count of posts plus one

I'm trying to create posts where title will be 1, 2 etc, $published_posts = wp_count_posts('orders')->publish; $count = $published_posts + $a; $success = get_page_link(794); ...
0
votes
0answers
42 views

How to show the posts list into a static page? Problems to use the loop into a static page

I have the following problem: I have to create a posts archive into a static page. So I have created this page template containing the loop to interate on my posts: <?php /** * Template Name: ...
0
votes
0answers
35 views

How to create a posts archive page showing only the date and the post title

I have the following question about how to create an archive page on my website. As you can see opening this link: http://lnx.asper-eritrea.com/ Under the header slideshow I have 3 boxes, the second ...
0
votes
1answer
212 views

WP Load post with ajax and apply isotope

I ma using Ajax Load More to get my posts and show in a frontend, then I have applied isotope to the items. When I first show some items and applied isotope, it's working perfectly. But When second ...
0
votes
0answers
18 views

Run function after post is updated

I would like to run a function after a post is saved. That function takes a .txt file thats uploaded with Advanced Custom Field file field, makes it into an array to then a json data. I want the json ...
0
votes
0answers
54 views

WP load posts by ajax, count and update every time

I have used Ajax load more plugin to load my posts. I also need to display the total post count and update it after every time post load and append to the list. Can anyone give me any idea about ...
1
vote
1answer
38 views

Wordpress Sidebar menu for posts based on date - guidance needed

One of the issues I have with WordPress is knowing when (and when it is possible) to use the WordPress back end instead of coding my own solution from scratch. This question is based around this. ...
0
votes
2answers
34 views

If post exists in the database - each time goes on `else`

Firstly, I am a newbie when it comes to php. I have a plugin that periodically imports posts into my website. Normally, it should check if the post already exists, and if it does, it updates it. ...
1
vote
0answers
30 views

Publish post's date is set to Nov 30 -0001

It is very difficult for me to describe the problem and the cases when it happends. The idea is that somtimes Publish date of article in administration panel is set to "Nov 30, -0001 @ 0:00". The ...