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)

4
votes
0answers
279 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
4
votes
0answers
143 views

Keep featured content post in homepage with original order

I'm searching how to keep the featured post in my blog homepage without excluding it from query post. My blog uses the Twenty Fourteen theme. I found this solution. Open the featured-content.php ...
3
votes
0answers
278 views

Invalid post type when click “Filter” or “Apply” button in Wordpres admin Post list

I need your help to resolve 1 Issue in Wordpress admin page. I'm using WP 3.7.1 and twentytwelve template. I have some posts and pages. Currently, when I click Filter or Apply button in Post/Page ...
3
votes
0answers
129 views

Adding a cancel button to edit post screen

I'm actually quite surprised WP hasn't already implemented this. I want to add a Cancel button to the edit post screen which will do some cleanup when pressed. After a little playing while watching my ...
3
votes
0answers
347 views

Post in Multiple Categories to stay in current category (permalink, next previous post link)

I guess this has been mentioned before, but after 2 days of browsing i haven't find a complete solution. Maybe someone has come across this problem before? I'm building a designer portfolio where ...
2
votes
0answers
27 views

Showing random content / pictures from earlier posts in a sticky post?

I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
2
votes
0answers
48 views

How to load paginated post pages via ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
2
votes
0answers
275 views

using slug instead of ID in admin edit post url

In Admin, is there any way to use a slug instead of a post ID# within the url that takes you to a post's edit screen. So instead of: http://mysite.com/wp-admin/post.php?post=5562&action=edit ...
1
vote
0answers
33 views

Loading <!--nextpage--> post with Ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
1
vote
0answers
30 views

Posts and Attachments with “Published” status in Search

I would like the search to show only published posts and attachments (the attachments are photographs taken directly from the media library). The trouble is, when I specify that the post_status must ...
1
vote
0answers
31 views

Get attachments for posts that belongs to a specific category

I am trying to get images which are used by a post belonging to the specific category. For example if I have plants, mushrooms and animals as post categories, I only need to retrieve images that are ...
1
vote
0answers
14 views

Prevent additional top level categories but allow more children

Is it possible to prevent additional parent categories being added to posts but allow children categories to be added to predefined parent categories? For e.g.; Food & Drink -- Mexican -- ...
1
vote
0answers
24 views

Emojis replaced by '?' automatically

I just discovered that all emojis on my site were replaced by the ? char. I saw this on comments and posts. Tables like wp_comments or wp_posts had a utf8mb4_unicode_ci collation before and now, so ...
1
vote
0answers
81 views

Random ajax load only works with posts_per_page set to -1

I created a post loader shortcode, that uses AJAX to load posts. Even though I can set the order and order_by query parameters, the order_by should be random. From what I've seen on the web, ajax load ...
1
vote
0answers
35 views

Prioritize posts in query by meta keys?

I have a CPT called jobs. In my single jobs page I am counting page views with these functions: /********* Post Views counter ***********/ remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head',...
1
vote
0answers
80 views

What's the best way to render Visual Composer in posts, not pages?

I have a page with layout and ui content I'd love to use in my posts. Is that possible without running through all the shortcodes with do_shortcode?
1
vote
0answers
13 views

Homepage's content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?

I have a custom field in my home page called "Featured posts". There are two fields: title and post. The post field returns post_object with post_type as posts. In my functions.php I have added the ...
1
vote
0answers
35 views

MySql query to get posts with all meta and terms

I'm trying to figureout a way to get all fields from wp_post with all of their custom fields and categories in one mysql query. So in one row of the result I should have post fields with their custom ...
1
vote
0answers
81 views

Trying to use AngularJS with WordPress without any API

I understand one can do this using the JSON RESTful API from WP but I don't want to go that route since it only works with sites on Wordpress.com and not on localhost (at least that's what I was told ...
1
vote
0answers
35 views

Prepending %category% onto default posts fails

I have been attempting to change the rewrite slug on the default posts. This is my post_type re-registering code (Taken from another post on StackOverflow) with the simple intent of changing the ...
1
vote
0answers
39 views

CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick

Only the buttons Add Media, HTML and Visual show up after installing CKEditor for WordPress. In addition, encounter the following error while clicking to HTML or Visual by using the tool Inspect ...
1
vote
0answers
23 views

get_adjacent_post by language

I am using Polylang plugin, which assigns each post to a taxonomy 'language'. While using get_adjacent_post() I want to bring only those posts that belong to the language currently displayed. So I ...
1
vote
0answers
87 views

List all categories with featuread image from post?

With this code I show all categories: <?php $args = array( 'orderby' => 'name', 'parent' => 0 ); $categories = get_categories( $args ); foreach ( $categories as $category ) { echo '...
1
vote
0answers
35 views

How to : pagination in 3 different custom loops on the same page

I have this content in my index.php. 3 areas with 3 distinct custop wp_query loops to get different categories of articles in each one. I have set wordpress to show 12 articles by page, so it displays ...
1
vote
0answers
234 views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
1
vote
0answers
121 views

Automatically add date to the auto generation of post slug

I need to customize the slug when you add new post and after you write title it creates automatically slug. I want to add before the auto title of the post the current date on this format d-m-y so the ...
1
vote
0answers
70 views

Pagination with an array of post objects?

I am curious, I have the following code: foreach ($this->networkBlogs as $siteBlog) { switch_to_blog($siteBlog['blog_id']); foreach (get_posts() as $postObject) { ...
1
vote
0answers
69 views

How can you change all past posts' images to link to none instead of the image file?

I'm working with a new client who has a ton of existing posts. She has a lot of inline images and for some reason they all link to the image files. I know how to change this for future posts by adding ...
1
vote
0answers
95 views

Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one

Copy & paste the following in the html post editor: <em>John</em>'s Then click preview button and see the results. It will be: John‘s This is grammatically incorrect. It ...
1
vote
0answers
128 views

publish_post conflicts with save_post

my plugin has a save_post hook used to save the custom fields. now I add a publish_slider hook used to change a checkbox's status(slider is a custom post type). but it doesn't work properly. the ...
1
vote
0answers
52 views

Sharing post from archive page (loop) doesn't work

On my archive page, I have for each post( I have include in the loop) the possibiity to share the post via facebook via this code: <a href="http://www.facebook.com/sharer.php?u=<?php ...
1
vote
0answers
470 views

Add Read More Tag to a post content (Single.php)

I have wordpress custom theme made from scratch including: header.php, footer.php, single.php, index.php, functions.php For Listing the blog list i used index.php with excerpt and read more link to ...
1
vote
0answers
34 views

Is Hfeed class for all pages needed

Hey there :) I'm trying to fully understand the Hfeed class used in underscores.me themes. I'm developing a site on most of the underscores structure, but I can't figure out if I can remove the hfeed ...
1
vote
0answers
131 views

How to compare two posts including their meta fields on a scalable base?

I have set up a wordpress in a way that posts can be cloned and be altered by a different author. whenever this is the case, i want the administrator to be notified via an additional tab in the edit....
1
vote
0answers
34 views

Why does my site often display 404 on subpages?

About once or twice a week, my site will display a 404 page on everything but the home page. The simple fix has been to change the Permalinks settings to "Default" and then back to "Post Name" and it ...
1
vote
0answers
109 views

Move comments only from one WP installation to another

We have a bit of situation here. We have a website (let's say it is www.oldsite.com) where we had more than 2000 posts. There arose a need whereby we had to move some 60-70 posts from this oldsite.com ...
1
vote
0answers
197 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 ...
1
vote
0answers
72 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 ...
1
vote
0answers
61 views

How to render taxonomy in loop of custom post_type

I made custom post type and taxonomy and on my page template I want to render the taxonomy name in my css class. Anyone know how to render it? This is what I have so far <?php $args = ...
1
vote
0answers
76 views

Automatically attach image to post if they have the same title

I have 200 images in my WP install. Currently, each image... has its own post (the post title is the same as the image title) is the featured image of that post is inserted into the post However,...
1
vote
0answers
416 views

Separate Database Tables For Different Post Types

one big problem with wordpress is that everything on it is a post(a record in wp-posts table)! images, posts, pages, products(for example in woocommerce), portfolios, Post Revisions... Almost ...
1
vote
0answers
668 views

Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?

The wordpress theme I'm using uses a custom post type called 'coupon' and a custom taxonomy called 'store'. The default permalink structure for a coupon post is site.com/coupon/CouponPost I would ...
1
vote
0answers
12 views

Take a received feedback item, turn it into a post

Using a feedback form post, user submitted feedback appears in the settings pages under <blogname>.wordpress.com/wp-admin/edit.php?post_type=feedback. I would like to then take those posts (...
1
vote
0answers
20 views

How to get the last selected media alignment setting?

The default media uploader for inserting into a post retrieves the last selected alignment setting that was used. How do I retrieve that for use in my plugin?
1
vote
0answers
116 views

Blank page when saving edits on post

Whenever I try to edit a product or a post on WordPress I get a blank page and the edits are not saved. I have been checking Google alot, but there it all seemed to be caused by a plug-in. I only have ...
1
vote
0answers
125 views

Add custom field to category of custom post type

I want to add a custom field (for a icon) to categories of a custom post type. I use the default category type and not a own create category taxonomy. How can I add the custom field only to the ...
1
vote
0answers
46 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
1
vote
0answers
123 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 ...
1
vote
0answers
93 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 ...
1
vote
0answers
141 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 ...