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)

1
vote
1answer
227 views

If modified on same day, show only time

I have a date on each post and comment which shows the date of placement. If I edit it, it shows me the date of the post and the modified date. That's fine, but now, I want to show only the post date ...
0
votes
2answers
242 views

Getting index.php instead single.php for displaying posts

I'm (locally) building a custom theme. So far I have: index.php single.php page.php custom page template called about-page.php two different headers: one for default use and one for the single.php ...
2
votes
2answers
314 views

Dynamically add id to heading tags

How do I add an id attribute dynamically to every heading tag on a wordpress website using php? I wanted to make it so that for every heading tag (h1, h2, h3, h4, h5, h6) I have a unique id attached ...
0
votes
0answers
13 views

Multisite single Wp_Posts table

i want force with an hack or with a remove/add action/filter save of new/edit product in woocommerce to write (and to read clicking on grid link) from wp_posts and not wp_ID_posts in multisite ...
0
votes
2answers
230 views

display last post modified date in genesis child themes

Since I frequently update posts so it’s crucial for me to display last modified date instead of post published date like following image. Its because I want search engine to display my post last ...
0
votes
0answers
9 views

Custom post type request switches to media request

I am using Modern Tribe's Events Calendar Plugin http://tri.be/shop/wordpress-events-calendar/ I use this on multiple sites, but I have a really weird problem. I've already checked to ensure it is ...
2
votes
1answer
524 views

Search posts by post author name

I want to search posts publish by particular author. For this purpose I added a filter in functions.php: function wpse_29570_where_filter($where){ global $wpdb; if( is_search() ) { ...
0
votes
1answer
36 views

AJAX fileupload - TypeError: not a function ajaxSubmit()

I have a plugin that works as a standard POST but not as an AJAX POST request. I am getting a not a function error in Firebug with this function: TypeError: jQuery(...).ajaxSubmit is not a function ...
0
votes
1answer
319 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
0
votes
0answers
11 views

How to create a playlist for audio associated with posts per category

I am trying to find out how to create a playlist on the category page. The playlist will play all the songs/audio files associated with posts linked to a given category. Example If i have a category ...
0
votes
1answer
334 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
2
votes
1answer
253 views

How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?

I have a custom hierarchical taxonomy containing only two levels of items. First Level the title, second level items of the taxonomy. Is it possible to add a "meta box" to the posts editor of ...
0
votes
0answers
9 views

Send post id through ajax and get the post content back

First of all i want to say that I am a WordPress beginner :). I am trying to get a post content in a modal by using ajax. So i send the id through ajax, but i cannot execute the php code anywhere on ...
0
votes
0answers
11 views

Email Post Attachment on wp_insert_post Action

I have a frontend form that uses wp_insert_post() to programmatically insert posts into the site with "pending" status. I'm also using insert_attachment() to attach the submitted file to the post. ...
1
vote
3answers
2k views

Removing any and all inline styles from the_content()

For one of my current projects, I had to transfer blogposts from an old Wordpress site to my project. Things went smoothly until I've seen that all the posts were copy pasted from Word, leaving this ...
0
votes
1answer
9 views

Relative Image Urls in Posts are starting from root - Not from WordPress Address (URL) at General Settings

The title pretty much explains all. But I wanted to ask that shouldn't it behave like this that relative image urls in posts should be started from wordpress address (url)? I have a wordpress ...
1
vote
2answers
403 views

How to add shortcode tags in single.php

In my theme has one shortcode tags to display tags of post and function to load content post. But in function doesn't include shortcode tag. Now I want to add it to function but i don't know how to do ...
-1
votes
0answers
10 views

Wordpress Slider plugin [on hold]

Ok so I have a problem , I have been trying and searching for days for a specific slider with a certain functionality To describe what exactly I am looking for , I am looking for a slider that is ...
0
votes
0answers
18 views

WordPress broken video plugin sends multiple emails [on hold]

Hello I found a plugin from toscho found here: [enter link description here][1] Its used to report a broken video on wordpress. It works flawlessly except that it sends 4 emails to my gmail inbox ...
-3
votes
0answers
16 views

Autopublic post please help [on hold]

Please i am not programmer, but i would like to have function i have for exmaple one post with this ID (name: news) this post i would like autopublic in date, and time interval (example: every ...
0
votes
1answer
13 views

User Selectable Delete of Pages

in my WP MultiUser project i am designing a template for deleting a page from the front-end (only the super admin can access the back-end admin panel) I have almost achieved the desired result, but ...
0
votes
1answer
66 views

Custom taxonomy archive page problem

My website is built on custom post types, that I have organized with different custom taxonomies. The menu buttons are the taxonomies archive pages (red, blue, green), so that when you click on the ...
0
votes
4answers
32 views

Post thumbnail height problem

I am trying to create a square thumbnail with auto crop with size of 300px 300px. I only get the width of 300px but the height is auto, i think is not cropping. I tried this: add_image_size( ...
0
votes
1answer
22 views

Loop doesn't display posts. It displays a link to the home page instead

I’m building a WP theme using Bootstrap. Aparently, all templates were working fine until I tried to display a list of recent post on the front page. Basically, the loop it’s not displaying posts (it ...
0
votes
2answers
29 views

What Is meta_id In wp_postmeta?

I am trying to add some data in WordPress Custom Field and via adding more direct records/data in wp_postmeta table via SQL query. There are four column as mentioned below... 'meta_id' - A unique id ...
0
votes
0answers
24 views

Inconsistent post order using wp_insert_post

I am retrieving a consequent (~4000) number of posts from a database that I want to save to my WordPress database. I am inserting them this way: include("wp-config.php"); $con = ...
0
votes
1answer
276 views

Unable to add TAB character to post?

I am using the CodeColorer plugin to display source code in my WordPress. I am trying to have my code indented so that it displays properly on the website. However, when I try to add the following ...
0
votes
1answer
256 views

Hiding posts - WP Hide Post not working

I frequently publish posts that I need to be hidden. They need to be published, so that someone who has their url can go to them, but I don't want them showing up on my homepage, in my recent posts ...
0
votes
1answer
13 views

How to associate media with a post?

We are using a WP LMS and use custom posts for the courses. I would like to have an area in each post where there are course materials. So on the backend, a section for materials and the front end ...
0
votes
3answers
330 views

WP 3.5.1 password protected not working for post

After adding right password fornt side wp, post not open and it's say Not Found Apologies, but the page you requested could not be found. Perhaps searching will help. how to solve this?
0
votes
2answers
287 views

Conditionally exclude post from specific category on home page sidebar?

I want to exclude posts from one category. These posts should not show in the sidebar on the homepage only when I explicitly don't want that particular posts to show. In all other cases these posts ...
1
vote
2answers
1k views

Wordpress removing <p> tags?

I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes ...
2
votes
1answer
516 views

Add custom Attachment Display Setting for images

I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ...
0
votes
1answer
25 views

How to display featured image without it appearing in post?

I want to have the featured image as a thumbnail when I search for the post but I don't want the featured image to be on the actual post itself. Are there any plugins or edits to code that I can do?
0
votes
1answer
92 views

Only display sticky post or latest post in custom loop

I'm new to Wordpress and PHP and I've been battling with this for a while now. What I have for the moment is 2 loops. I want to first loop to only ever show 1 post: either a sticky post, or the ...
0
votes
0answers
18 views

4.0 Media Uploader Customisation

Does anyone have/know of any guides or tutorials that break apart the different hooks and sections of new improved the media uploader? Specifically, I'm looking to add a new tab to between the ...
1
vote
2answers
371 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
1
vote
2answers
1k views

Display all posts under child sub category in sidebar on post page?

I am trying to make a custom sidebar for my posts in certain categories. It will look something like this. My category structure looks like this: Parent 1 Child 1 Sub Child 1 Sub Child 2 Child ...
0
votes
0answers
22 views

Custom Post Types and Posts are mixed

I need help with a problem related with CPT and WP Database. I have a wordpress install with bbPress and a custom post type called Destinos. The problem is that when I´m looking for the forums, or ...
0
votes
0answers
13 views

When I update a post and at the same time trigger an ajax request, post request is cancelled

When I update a post and at the same time trigger an ajax request, post request is cancelled. I have a video that proof this behavior.http://screencast.com/t/w2YwDGmWCg
1
vote
2answers
22 views

Fetch posts from current week (Sunday to Saturday)

I'm trying to fetch posts from current week. <?php $args = array( 'date_query' => array( array( 'year' => date( 'Y' ), 'week' => ...
0
votes
1answer
29 views

wp_insert_post not working fine

I asked my question on stackoverflow but I did not get any answer, may be because it's the question related to Wordpress.So I am asking it here. I am using wp_insert_post function to insert my posts, ...
1
vote
1answer
34 views

How to remove images from showing in a post with the_content()?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do ...
0
votes
1answer
26 views

How do I get thumbnails?

Today I set up my Wordpress blog I used the hueman theme I looked at my posts page And there were blank images with cameras in the middle of them So I guess there thumbnails How do I get them?
0
votes
1answer
247 views

Random Category with Recent Post Title and Thumbnail

This code below works perfect to pull the title of five random categories, the issue is for each random category I want the latest post title and thumbnail but where and how do I add the post query? ...
-1
votes
3answers
52 views

CSS code for “inserting a custom post divider” after each post

I want to add a custom post divider to separate my posts. I'm using the Enfold theme in WordPress.org. I've searched for the answer to my question but I don't understand the coding language. I ...
0
votes
0answers
16 views

How to count number of (unofficial) child posts of page? [closed]

So I have the page, http://example.com/fruit/ As well as the post: http://example.com/fruit/apple Pages can have parents and be children, but I am pretty sure that posts cant have parent pages. I ...
0
votes
0answers
12 views

hide image or text in full text (only in shortpost)

i need to put image or text only in shortpost and when user click read more and see full post dont see image or text in shortcodes anymore i need this only for some post : i want to put a preview of ...
0
votes
2answers
342 views

How to change the order of elements within a post?

I have a site with several thousand posts. They all have just a single attached image of varying size. All posts are displayed in full (no thumbnail view). I'd like to be able to change the way the ...
0
votes
0answers
17 views

Get post titles shows on single posts

I want to display this link lists in "single post" only. How to do this? add_action( 'genesis_before_footer', 'radiolink_unit', 1 ); function radiolink_unit() { ?> <div id="languagelinks"> ...