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)

2
votes
1answer
30 views

Append a <!--nextpage--> to every post to force additional page link (and static content)

I'm trying to affect either the content or the $post->post_content directly, before the post get read by the wp_link_pages() function, to inject a little bit of static text or javascript after the ...
3
votes
1answer
291 views

Change post format using custom field

I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do: Create a new standard-format post Enter a url ...
0
votes
1answer
25 views

Hide first blog post in content and output it in widget

I am working on a theme and want to hide the first blog post and instead output it at a custom widget position. For that I created a variable in the functions.php called $postCounter. I accessed ...
0
votes
2answers
51 views

query_posts different amount of posts per page

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page ...
0
votes
2answers
315 views

Display post category in foreach loop with category link

I have the following code to show current author post lists with post thumbnail, post title, post date and post category. function my_get_display_author_posts() { global $authordata, $post; ...
2
votes
3answers
410 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 ...
-1
votes
1answer
24 views

Displaying posts content inside a page [on hold]

I have a problem when I am trying to view the posts content inside a page When I click on the post title, the WP retrieving the Homepage content inside the page of posts
-1
votes
1answer
18 views

Show Posts by Price Plan [on hold]

I have made a website on wordpress. There is registraton of any user by choosing Price Plan which is i am going to describe as follows:- Premium Blog Posting - $90 (90 Blogs Per Month) Featured Blog ...
0
votes
1answer
20 views

Shortcode and whitespace formatting problem

I'm having a problem with shortcodes on a website, currently you enter a shortcode in the post edit screen like the following: [tab name=Itinerary] This will output a tab such as: However as ...
3
votes
1answer
796 views

Connection lost. Saving has been disabled… (Updating Posts/Pages)

I've been developing for Wordpress for a few years now without any trouble on an old XP/WAMP development server (v1.7.4) but recently have been getting the error "Connection lost. Saving has been ...
0
votes
0answers
21 views

Recipe Plugin Options

I currently run a recipe blog which just uses standard posts for recipes. I tend to have a few pictures and a short description before the 'Read More' line, then the rest of the data ...
1
vote
1answer
479 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...
0
votes
0answers
22 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 ...
0
votes
1answer
19 views

Wrong post title displayed from loop

I'm building my own theme. I have a page set for my blog (with a template that I made) which I'd like to just display a few of my posts. It uses the following loop: <?php ...
5
votes
3answers
760 views

How can I make it so the Add New Post page has Visibility set to Private by default?

I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default: Status: Draft Visibility: **Private** Publish immediately [Publish] ...as opposed ...
0
votes
0answers
11 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
votes
1answer
19 views

Wrap posts from a category in HTML

I want to get multiple posts content from a particular category. I would also like to wrap each post around some HTML. Any ideas on how to best do this?
0
votes
1answer
479 views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently ...
0
votes
2answers
24 views

Hide thumbnail if there is a gallery on the post

In a post I want to always show one of two options- If the post has nothing but a thumbnail image show the thumbnail. If the post has both the thumbnail and a gallery then show the only gallery ...
0
votes
1answer
265 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
0
votes
0answers
62 views

Get url/link to latest comments in a post

I have a post list in WordPress where people can see the most recently commented posts. They will appear above the list. That's fine, but now, I have 300 comments on the same posts and I don't want ...
1
vote
3answers
2k views

Loading post content in FancyBox

I got a tricky question. I have created a custom post type whose posts I would like to display in a scrolling carousel. The carousel will only display the title, the excerpt and a "read more" button. ...
0
votes
1answer
27 views

Custom template for different post types

I'm struggling to get my head around the correct terminology for posts/templates etc which is making it difficult to find what I'm looking for in Google/on here. Basically, I'd like a user to be able ...
1
vote
1answer
91 views

post_row_actions for custom post type

I'm using this code to have a duplicate post function in WordPress Admin. However, when I add the filter for a custom post type, like this: add_filter( 'directory_row_actions', ...
-3
votes
0answers
12 views

why on twenty thirteen site my comments (not posts) do not show last 10 first?

Is it possible for the site I work on: elcosito.com to show the last 10 comments (not posts) on the front page at all times? Right not it shows what I post: 1-10 comments, when I post number 11, it ...
0
votes
0answers
4 views

migrate first image of every post into featured image

I have an existing WP 4.0.1 with around 150 posts. All of them start with an image embeded within the html body which looks like this: <h4><img class="aligncenter size-full wp-image-????" ...
1
vote
1answer
483 views

How can a guest view the “Pending Review” Post?

When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google ...
1
vote
3answers
2k 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 ...
0
votes
0answers
11 views

Ajax WP_List_Table in Admin Edit Post Page

I need to show a WP_List_Table with a list of custom posts types inside the post edit page. I followed the instructions at this link. The ajax part works fine, but now I have a problem when I try to ...
0
votes
1answer
20 views

How to make related post order by random?

I purchased a theme which had a related post functionality, but it sorts by latest so all the my post in the same category have the same related post content. I would like this set to random but dont ...
0
votes
1answer
39 views

How to add add more properties to WP_Post object in search results loop

I am using a plugin called Event Organiser, and it seems that it will only append its custom properties to the post object for all other instances of the WordPress loop except the search. Is there a ...
0
votes
2answers
27 views

Get custom post type parent category

I'm creating a custom post type like this: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'), 'labels' => array( ...
0
votes
1answer
423 views

Auto insert More tags in all posts

I have a theme for my mobile site that requires the <!--more--> tag in my posts for it to display an excerpt of my post's content. I've got over 2000 posts already, and its going to take ...
0
votes
1answer
25 views

Better code/text editing for posts and pages?

What is the most well known or liked method or plugin to improve the text editor for posts/pages? I would love to have syntax highlighting and formatting, along with other IDE type functionality in ...
2
votes
1answer
24 views

get_the_term_list by hierarchy order

function btp_entry_capture_categories() { $out = ''; global $post; $taxonomies = get_object_taxonomies( $post ); foreach ( $taxonomies as $taxonomy ) { ...
0
votes
0answers
10 views

Some post URLS are opened with feed reader

it is the first time this I see this bug! Browsing the news in the blog, sometimes instead of going to the post the browser views the RSS page!!! (look to the screenshot) The if you refresh the page ...
1
vote
2answers
116 views

Why does `url_to_postid` return 0 when testing `page_for_posts` Page?

If I set Reading Settings > Posts Page (in other words, the page_for_posts option) to a static page, and then attempt to pass its URL through url_to_postid() it will return 0 - why is it? I ...
0
votes
0answers
29 views

get_the_ID() fails the first time, returns a value the second time it's called

I'm using get_the_ID() when creating an email. The first time that an email is sent using a post for the content, get_the_ID() returns nothing. If I resend an email with that same post, it will ...
0
votes
2answers
7 views

How do I add an article to specific page?

Regardless of it being WooCommerce or WordPress, I want to add a couple articles to specific pages, so they show there instead of the images that are there now. Homepage I know, I'm supposed to use ...
0
votes
2answers
370 views

Insert data from custom created PHP page into wp_postmeta table

I am working with a Wordpress site and have created a custom page in /home/planmyme/public_html/php/ with the name response.php. On this page I am getting a value to insert in the wp_postmeta table ...
1
vote
1answer
21 views

if custom post type exist

I want to test if custom post type mobile exist. I used if custom post type exist in the loop, but it doesn't work. Any suggestion why my code is not working <?php /* The loop */ ?> <?php ...
0
votes
1answer
524 views

Load post attached images on a single page site with fancybox

I'm trying to make a single page site that will display posts as thumbnails in some part. Then if a thumbnail is clicked, I want all the images contained in this post to be loaded with fancybox while ...
0
votes
1answer
13 views

How to Arrange Support => Thumbnail

Good Afternoon, I've created a CPT that mainly uses Featured Images, I would like to know how to rearrange this box to appear in the center where 'content editor' would go instead of the right ...
0
votes
1answer
51 views

Correcting the content width when sidebar is inactive?

I want my website's content (posts) to be central in the page when the sidebar is inactive. I've currently got it set to fit both the content AND the sidebar on the same page. How can I make it ...
0
votes
1answer
21 views

Posts tagged with a-new-tag does not appear

I use wordpress 3.9.3. It already has many posts tagged with respective YEAR and are displayed under their respective tags on the relevant page. I added new posts tagged with 2015, but they somehow ...
0
votes
0answers
8 views

How to add jQuery div element to each image on wp site?

I'm trying to add the "Share" button to each of the attachments inside of the post. I found function that allows to get all attachments on the post: ...
3
votes
2answers
83 views

How to schedule multiple posts while adding new

In a WordPress powered news portal, they need to upload many news at a time on a certain period of a day, in most of the cases, after 10pm (today). But they are actually inserting news for the next ...
0
votes
0answers
13 views

Custom post type url removal for child posts

Hello so my issues is that i cannot figure out how to remove the post type name from the permalink of child post. Already went though most of the solutions on the web but not none helped. Basically ...
0
votes
1answer
13 views

How to select particular month post from table and update the post status using MySQL?

I would like to change the post status for particular month via MySQL command Using SSH...Can you anyone tell me how to do this via SSH. I have number of post more than 40,000 posts, each month i'm ...
0
votes
2answers
19 views

Redirect before post page

I have post list page of a category. I want to redirect not logged user to login page before he views the post page. I tried with wp-members plugin, but not. In wp-members plugin, there is a hook to ...