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
24 views

Categories option not appearing in post meta box

While create new post, categories options is not visible in screen options. where I can find to show categories option while adding new post?
-1
votes
0answers
20 views

only allow ONE post in a certain category; uncategorize all other posts with same category

I've created a category called "top headline" and relative query that displays ONE POST from this category. Scenario: Let's say I have one post currently categorized as "top headline". Then I create ...
0
votes
0answers
17 views

How can I deny the user the insertion of emails in topics / comments and stay on the same page?

I have this function that checks whether or not a content contains an email: function fw_check_if_content_contains_email( $content ) { if ...
0
votes
1answer
26 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...
0
votes
0answers
22 views

Issue linking to custom post type posts

I am having issues linking to a custom post type post. There is a shortcode that loads a list of posts for "applications" on the site I am working on. I am not sure what code to use to have it call ...
1
vote
0answers
27 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 ...
0
votes
0answers
29 views

First hook to use current page post id

I'm trying to find the first hook that will pass the current post ID, as I would like to update the current post (by getting its ID) and the variables submitted to that page. This is the code I'm ...
0
votes
0answers
39 views

Fixing the WP Post Object for Custom Route

I'm currently in the process of building a custom plugin for a client that involves displaying front end user profiles for any "subscribers". These profiles will be populated with various user meta as ...
0
votes
1answer
52 views

How to Submit Post Via cURL & PHP

Thanks for reading. I'm trying to submit a post via PHP. I'm filling in a large number of posts from a good amount of data I've scraped so I need this to be automated. I don't have the time (or ...
0
votes
0answers
11 views

Category specific attribute

I wonder what is the best way to define specific attribute for category. My idea is following. I have some categories that are just wrappers, they don't contain any post so they are only parent ...
0
votes
0answers
21 views

Query returning 1 post per page but saying it has 71 pages with almost 1500 results in total

Something is definitely not right here and I honestly cannot understand what it it. After I put this code on one of my custom made plugins, although it makes the search correctly (the result ...
-2
votes
0answers
11 views

Output Diffrent Tablerows after loading the same Wordpress Side with a Shortcode in the Content where the table will be shown

i know currently how i can add a shortcake for my Plugin that will output an table with 20 Rows of information and also a navigation bar for the previous 20 rows. But I still could not find out how to ...
0
votes
1answer
26 views

Is there any hook to change media html in post? [duplicate]

When I add image to a post, wordpress makes this html format in theme. <p> <img class="aligncenter size-full wp-image-455" ...
0
votes
1answer
17 views

Post URL duplication adds numerical value

I thought that belonging to these different categories url naming posts the same would be treated as distinct. Categories: Home Hotel Posts: street street URL generated: ...
3
votes
2answers
128 views

Search & Remove Specific Shortcode From All Posts

Question Is there a way to remove a specific shortcode, say [print_me] from all the posts where it appears in one shot. And I don't mean mask it or filter it so it doesn't show up while it stays in ...
4
votes
1answer
74 views

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a ...
0
votes
2answers
14 views

Detecting current page from class method

I've tried to look for a specific answer/tutorial on this subject but I'm coming up short and wanted to see what the SE community could suggest. At this point, any guidance whatsoever would be most ...
0
votes
1answer
27 views

Sticky Post from page 2 and on

Today I updated an old blog post and set it to sticky to show info about the latest changes. It’s a typical post with Site Updates as the title for a log of a sort you could say, with past changes ...
0
votes
0answers
9 views

Automatic format non-formatted imported posts

I imported a lot of posts, some of them are good formatted, but most of them are non-formatted, without spaces after comma or dot(s), no new paragraph. In fact this is short example of article: Hi ...
0
votes
2answers
24 views

How can I alternate styling of images in a post? [closed]

I'm working on a theme for a travel blog and the author likes to insert small images in the text of their posts (an example is here). I want the images to alternatingly float left or right (so the ...
0
votes
2answers
27 views

Changing the Category for all posts of an Author

I'm trying to change the category for all posts of an author. I've been looking on here for about an hour and haven't found a solution.. Any help would be greatly appreciated :) Thanks, j03
0
votes
1answer
17 views

Auto populate custom fields by post date

I have an old blog with lots of posts, I created 2 new custom fields "Year" and "Month" using ACF. I would like to auto populate them from the post date after post save/update, is this possible ? ...
1
vote
1answer
72 views

How to load a different header based on post format?

I have a difficult question. What's the best way to load a different header based on a post format? I guess I could load another loop around the header but I noticed the site does slow down. This is ...
0
votes
0answers
22 views

How to Publish a Post Multiple Scheduled Time

I want to publish a post in WP, but not immediately. So what I am doing is like this- From this tutorial. So, I am getting only 1 time when the post will be published. But I want to the post be ...
0
votes
0answers
13 views

Rating from a mobile app

I am looking for a way to allow my users to submit post ratings from my native mobile app. I have found this plugin : https://github.com/lesterchan/wp-postratings The calls are made by ajax to : ...
0
votes
1answer
25 views

Adding bootstrap classes to video shortcodes

I want to make videos responsive... There is a function in /wp-includes/media.php file: line 2497: $html_atts = array( 'class' => apply_filters( 'wp_video_shortcode_class', ...
0
votes
1answer
18 views

Bulk posts from DRAFT Section

So, i did create a website with 110k posts and i need to test some SEO features, so i did clone the same database and i did post them on 5 other domains. The thing is i can't index them 110k posts at ...
3
votes
1answer
53 views

Will a large postmeta table slow a site down?

I have created a hit counter that stores all time hits and daily hits. This means that if a single post gets at least one view a day it will have 365 meta fields added to it by the end of the year. ...
0
votes
1answer
35 views

Custom post type with two templates

I have a custom post type with an archive-my-post-type page and now I need a second archive page without header and footer and with a custom content. So my question how can I create a second page ...
1
vote
0answers
26 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 ...
0
votes
1answer
29 views

Display value of custom field at the beginning of a post

I've been using the subtitles plugin to display a teaser text to my posts right underneath the title (which is named _subtitle, and stored in the post's meta). How do I display this value at the ...
1
vote
1answer
76 views

Filter only the text in the_content

I tried to filter only the text in get_the_content for my home page, but its including my shortcode also, because in that page first row google map 2nd row text box i am using visual composer page ...
0
votes
0answers
27 views

Is it possible to display QUICK EDIT as default for all posts in wp-admin/edit.php page?

When we visit wp-admin/edit.php it display the post link. If we need a edit a post we need to click QUICK EDIT Link or Edit Link. Is it possible to display QUICK EDIT as default for all posts in ...
0
votes
2answers
57 views

Why my wp_posts data is so huge?

My WordPress has only 23 posts but the wp_posts data is over 70MiB. Is it the average size? The Posts I have were created with WPBakery Visual Composer and has 10 revisions. However, I deleted all the ...
0
votes
0answers
10 views

Custom tinyMCE control wrapping wrong

I'm adding a custom button to my visual editor, so that the client doesn't have to manually input shortcode. It's a simple column one. So when you select your text, and click on it, it wraps the ...
0
votes
0answers
26 views

Custom post type category copies posts from “Posts”

I'm creating a custom post type and added function pricing_init() { $args = array( 'label' => 'Price Tables', 'public' => true, 'taxonomies' => array('category'), ..... And ...
-1
votes
2answers
37 views

foreach all the post

How to i foreach the post title like below. this is what i want below function get_all_post_for_search() { return array ( array( 'name' => "Hello Project", 'thumb' => ...
0
votes
1answer
29 views

How to display the requested post only?

I have created a custom theme and my front page is index.php. Moreover, I have couple of blog posts and I display them with a loop in this page, together with a link for each particular post. The ...
0
votes
1answer
20 views

related author post thumbnail shows post thumbnail

using the code below to show 4 related posts from author <?php global $authordata, $post; ?> <?php $authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => ...
3
votes
2answers
58 views

How To Disable (or Remove) “All Posts, Published, and Trash” in Dashboard Posts

I have been looking for ways to completely remove the All, Published, and Trash webpages for USERS other than the me, the Administrator. So the scenario for me is: I have registered users (which I ...
0
votes
2answers
24 views

Posts and pages not getting published

I just installed a fresh version of 4.5 on my server. But for some reason every page or post is getting the status "Scheduled", it won't go to Published. Other sites on the same server works fine. ...
0
votes
0answers
15 views

List all post from different post type on one page by CPT UI

I am a php begginer. I am using CPT UI plugin for one of my projects - free resources for designers. The idea is to have different pages for different type of resources. So I will create different ...
0
votes
1answer
21 views

Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?

I am planning to purchase a plugin that allows users to create polls and then embed them via shortcode into posts. It looks like a great plugin all around; however, the functionality I would like is ...
0
votes
0answers
19 views

How to add a pagination in custom post type maker plugin

I declared testimonial using a testimonial page template. I want a pagination in testimonial menu. <div class="testimonial"> <ul> <?php $args = array( "post_type" => ...
-3
votes
1answer
20 views

How remove “recent comments” title without modifying code? [closed]

How remove "recent comments" title without modifying code? I have already disabled comments and do not wish to see that title.
0
votes
1answer
30 views

How do I retrieve a users' last 5 posts?

How do I retrieve a particular users last 5 blog posts? Currently, I am trying the following approach, but it seems that it is retrieving the actual post titles and permalinks: <?php ...
0
votes
1answer
35 views

Conditional Tag for has post [closed]

I am quite new to all the programming, and I am now stuck with the following. I installed the plug-in If Menu which lets you show specific menu items when Conditional statements are true or false. I ...
1
vote
1answer
13 views

Theme removed “Edit Post” link on the front end. I wish it back

I see that theme authors are removing the front-end 'Edit Post' links these days. I've installed WP User Front End plugin and i'd like to be able to allow the Post Authors to have an 'Edit Post' link ...
0
votes
0answers
12 views

Custom layout manager for posts

I have created a 'custom layout manager' for front page posts for my client, because he wants control over how his posts look. I've set up the backend - I have layout saved in an array, for each ...
-1
votes
1answer
44 views

WordPress More tag doesn't work on Single post

When I add read more on my post (single.php) I can see < !--more-- > in HTML editor and when I publish it, I don't get to see it on my website. I already tried several plugins to solve this ...