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
0answers
34 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
32 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
60 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
13 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
13 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
35 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
24 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
16 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
12 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
75 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
45 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
22 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 ...
5
votes
1answer
105 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
15 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
31 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
17 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
18 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
18 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
14 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
14 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
9 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
28 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
26 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
23 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
27 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
47 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
14 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
21 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
28 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. ...
0
votes
0answers
18 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 ...
4
votes
1answer
34 views

How to validate XML-RPC post creation and cancel when needed?

I have an IFTTT recipe that creates posts for me on some occasion, but for some weird reason it creates three, sometimes four posts of the same content. I would like to add an add_action ...
0
votes
1answer
16 views

Would a “hub” page work better as a page or a post?

First of all, I don't know whether "hub" is the correct terminology, but it is how we've been describing it. I run a movie blog and would like to create a page for each movie we cover in depth. I want ...
0
votes
0answers
5 views

I want to display tag description and tagged attachment (without post if there isn't..) while using tag url

I am new to coding, but i do understand a little bit. Is there a way to edit tag.php to achieve this? I have added Shiba media library plugin to my site so that i can add tags and catagories to ...
1
vote
1answer
74 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the ...
0
votes
1answer
29 views

Background image in posts

I'm trying to get the featured image to display in the background-image of each standard post-format post. So I'm successful in grabbing the image and was able to make it 100% of the width and height ...
0
votes
1answer
45 views

Get latest post from all categories except one

I trying to get all the latest post from every category, but I discovered I must ignore one of them. I don't want to show it at all. My problem is I don't know what syntax to write ifelse in this ...
0
votes
0answers
10 views

Is there easier way not to display all images attached on the page from media?

I'm thinking not to delete the images I attached on the page, but will just have conditions not to display images with order set to 0. If I have code like this: $thumbnail_ID = ...
0
votes
1answer
37 views

Some doubts about how the loop work (trying debugging it)

I am very new in WordPress development (and also in PHP development, I came from Java and C#). Today I have installed Aptana and configured XDebug to inspect what happens into the TwentyTwelve theme. ...
0
votes
2answers
31 views

Including text at the end of every post

I would like to include some text at the end of every post. Like how some people write "Like my posts? Follow me on twitter!" or something like that. There are some buttons for users to tweet or share ...
0
votes
0answers
29 views

global wp_query returning wrong post vars

I am currently filtering the_posts to recreate wordPress' "sticky post" function for custom post types. I also have to make sure that the sticky post is attached to a certain taxonomy term that ...
1
vote
0answers
16 views

“edit_published_posts” and “edit_other_post” issue

I need to modify a roles capabilities for post editing: User can modify his own post (publish status doesn't matter) User can modify others posts (only as long as they are not published) I played ...
0
votes
0answers
31 views

Count how many posts a user has viewed

Seems this is quite a new question, as I found it nowhere. I was wondering if it is possible to count how many posts a registered user has viewed (entered) on the frontend. So basically when a user ...
0
votes
0answers
11 views

Require featured image snippet not letting me Trash the post

There's a famous snippet which allows you to require a featured image on your post before it gets published, which is following: add_action('save_post', 'wpds_check_thumbnail'); ...
-1
votes
2answers
25 views

How to modify this function to exclude also the post belonging to a specific category?

I am very new in WordPress development and I have the folglowing problem. I use this function (declared into the functions.php file of my theme) to modify the main query in such a way that the post ...
0
votes
1answer
87 views

Create new Wordpress post [wp_insert_post] based on results of a WP_Query

I have a a page where users can filter a list of custom post-type posts based on the "Ultimate WP Query Search Filter" plugin. Results are passed to a div on the page using AJAX from there users can ...
0
votes
1answer
30 views

Display on page every post in blog WITH comments

I am trying to create a page which displays all the posts in the blog, with the comments to each post listed below the respective post. By looking around the internet I figured out how to create a ...
0
votes
1answer
77 views

How to add metabox for post of specific category

I want to add Metabox for the posts of category=18 and i am using the following code but unable to do so . So please help me out-> add_action('admin_init','my_meta_init'); function my_meta_init() { ...
0
votes
1answer
16 views

Saving a post ID to use in a form elsewhere on website

I am trying to save a certain queried post's ID to pass on in a form outside of my loop. To be more specific. I have one file named review.php, this file contains a Wordpress Loop which queries one ...
1
vote
0answers
44 views

Divide Loop Into Days & Categories

If you could help, I'd greatly appreciate it, because I'm halfway there, but I'm currently stuck! The site I'm working on needs to have it's posts, within the loop, divided up by days, and then under ...