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

How to add a class to edit_post_link?

My goal is obtain "Edit" button like this: <a class="post-edit-link btn btn-default" href="{$url}">Edit this</a> The first attempt I was trying adopt was adding before and after params: ...
0
votes
0answers
20 views

Use one meta box handler at post editor and option page

I made plugin which uses custom database table to store custom form data. All works at option page where is added meta box like this add_meta_box( 'my_form_meta_box', 'My details', ...
0
votes
0answers
15 views

This snippet is making my post display as an attachment post

I've added this function to my functions.php in order to get a field to set if there isn't a category listed. function my_acf_save_term( $post_id ) { // Bail if not logged in or not able to post if ...
0
votes
0answers
13 views

Creating different instances of a post

I was wondering if there is a way to create different instances of a parent post. For example I have post: example.com/post and I'd like to have a sub post like: example.com/post/1 (which is just like ...
0
votes
0answers
32 views

HELP get categories, child and post

Have tried severals code from Codex but not working,is it possible to display posts on category pages as subcategory wise using this. Example : ** Main Category Page ** ** Sub category #1 ** – Post ...
0
votes
0answers
25 views

Unable to uncheck a category in a post

I've created a post and I've checked the 'Jobs' category, but when I save the post, the 'News' category gets automatically checked, as well as the jobs category. It's seemingly impossible stop this ...
0
votes
0answers
24 views

How to tag posts under menu items without showing posts titles?

right to the point. How do I 'link' posts to menu titles so once someone clicks on the menu title all the posts that I tagged there show up? I do not want that each post's title show up (when ...
0
votes
0answers
30 views

Sticking a post or page to the top of all WordPress pages, posts, index pages, etc

I'm trying to add the same common content (like an announcement, banner, or slider) to the top of all WordPress pages, posts, category archives, etc. Standard WordPress sticky posts are displayed only ...
0
votes
0answers
124 views

Custom post type as HTML/PHP table

I have a custom page which displays some WP members (students) using $wpdb to query the database and display these members in a HTML table. This table gets generated (populated with records) when the ...
0
votes
0answers
31 views

Click on link to filter displayed posts like what we can see on products page

**I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that ...
0
votes
0answers
47 views

Custom Permalink Post with meta value

I would like to use two metabox values in order to build the permalinks for all posts (standard post type of wordpress). But after rewriting the permalink, it links to a page that contains a part of ...
0
votes
0answers
30 views

Show posts from specific categories in a set page and some cosmetic modifications

So I'm trying to make a gallery-site for a friend's art as a hobby/learning project, and so far I've chosen a theme that I liked and modified it to fit the content I wanted to upload. But ...
0
votes
0answers
23 views

Filter displaying posts

I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that by ...
0
votes
0answers
17 views

How to allow a “contributor” to restore a delete post?

I have a user with "contributor" role attached. When I log in as this user, go to posts section and try to restore deleted posts, Wordpress shows this message: "You are not allowed to restore this ...
0
votes
0answers
47 views

order posts with conditions & meta_key merge

i want a code to orders my blog posts using a "conditions" & combinaisons of 2 meta_key so details: if ( postviews < 20 views in exmple) ==> those posts order with date ==> here ...
0
votes
0answers
82 views

Custom post type permalink throws a 404 error

I am new to WordPress and trying to build a social networking site that has Buddypress installed and one CPT. This website has a custom post type for user blogs, this CPT has posts that are linked to ...
0
votes
0answers
50 views

Total Post type count display wrong, any idea?

Why are the total number of posts not the same? Any suggestions?
0
votes
0answers
51 views

Calculate top authors on the basis of Post Views

I wanted to calculate the Top authors on the single.php page according to the average of the posts views. I have created a function which is calculating the average of the total post views of a ...
0
votes
0answers
77 views

Adding css class to post and styling it

I am new to wordpress development, and I am using the Customizr Theme I am trying to add a CSS class into my wordpress post in order to incorporate styles into it but I am having difficulty finding ...
0
votes
0answers
52 views

Custom post type not showing in wp_posts table in database using navicat or PHPmyadmin

This is really weird. I created a custom post type and saved a few posts using it. Then I managed to edit and update them. When I came to look in the database for the rows I cant find them. I used ...
0
votes
0answers
54 views

How to parse a post and change the way a gallery item is rendered?

I want to use this plugin http://final-tiles-gallery.com/index.html to display the gallery the users insert in their posts, for that I need to use an specific HTML structure so the plugin works, I've ...
0
votes
0answers
17 views

Loop a Custom Post Pagination

I am having a little trouble trying to get my custom post type pagination to loop. The idea to my pagination is to only display a next field with the title of the next post. Once you hit the last post ...
0
votes
0answers
14 views

How to create a hook that can give points for either how many pages viewed by user, or pages viewed by a user's posts?

I started a blog recently and I liked the achievements idea. I installed two plugins both which I like, one is called Achievements and the other is called WordPoints. Specifically, I would like to ...
0
votes
0answers
19 views

Empty result when trying to fetc post in the future

I am trying to fetch a single post that is either scheduled or published using a custom WP Query. The query is running asynchronously. However I get no results. Here is my code: ... $args = array( ...
0
votes
0answers
64 views

How to add pagination into post showing

I have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; ...
0
votes
0answers
19 views

Custom post type - cannot link custom template to it in my plugin

I have created a custom post type called "syndication" in my plug-in and that all works as it should. However, I want to provide a custom template for the "add" option so I created a file in my plugin ...
0
votes
0answers
159 views

How to get all tags of a custom post type by id

simple question, how to get all tags of a custom post type by id? post_type=product. i have tried with http://codex.wordpress.org/Function_Reference/wp_get_post_tags in my post loop and the print_r ...
0
votes
0answers
24 views

How can users subscribe to searches

How to allow users to subscribe to search queries (for example a user search on the website, using the search form, for "green apples"), and send daily email alert to subscribers when new posts appear ...
0
votes
0answers
20 views

Unable to log in to wp admin after migrating and changing urls

Front end is working fine and site is displaying as it should however we are unable to log in to wp admin. When entering user name and password and clicking log in the page refreshes without any error ...
0
votes
0answers
96 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
0answers
67 views

Show author box of custom post type

I have installed a plugin to create ads listing but in the single ads page there is not the metabox author. What I want is to show below any single ad listing a box with listing's author info. I ...
0
votes
0answers
215 views

Load a single post into a modal

Another one for you guys. I'm trying to load single.php into a modal. It loads, but then it loads the content into the target to open the modal. The Call: <a href="<?php the_permalink(); ...
0
votes
0answers
44 views

Loop latest posts from subdomain to main domain

If i install Wordpress in a subdomain, can i get latest posts from subdomain and dynamically show them in main domain?
0
votes
0answers
39 views

How to make categories display corresponding post with a list of image thumbnails and a title under it?

So my goal is to have my website display each recipe category, when clicked on, direct you to a display with all the recipe post that go with the category you click on. I want the display to be neat ...
0
votes
0answers
28 views

Completely remove “posts” from Wordpress

I am using a plugin which handles a custom post type for me, and therefore I have no use for the original "Posts" post-type. I want to remove this from the menu and remove it's functionality so that ...
0
votes
0answers
29 views

wp_get_attachment_link add post id as query arg

Hello i would like to add a query argument at the end of the href in the image gallery. So for ex: where 36 is the id of the post where the gallery is. This is the code i'm using inside a ...
0
votes
0answers
37 views

How to broadcast a post into different websites at a time from a single website

I have 3 wordpress websites that are large and complex that advertise puppies for sale. I want to post a litter of puppies on 1 site and have it automatically post to my other wordpress site As long ...
0
votes
0answers
19 views

What are these page elements and how/ where can I update them?

I have been asked to update a wordpress website as a favour for a friend of a friend - most of the changes I have been able to implement, but I am stuck in trying to find the final batch of elements ...
0
votes
0answers
20 views

Pages edit as posts

I'm currently dealing with the fallout of the following question (How to change post to page). I got all my pages back though all the pages' URLs were changed so there is no hierarchy and when I try ...
0
votes
0answers
12 views

Detect Smilies without spaces

I know, it's dumb, but I think it's annoying that when someone enters a smiley manually like this hi:) it will not be detected and converted by WordPress because WordPress smilies functions looks for ...
0
votes
0answers
48 views

change the number of posts on the frontpage depending on screen width

My frontpage currently runs a secondary loop at the bottom of the page that shows 4 posts of a certain category. But I would like to reduce these posts to 3 when the screen width goes below 1024px. ...
0
votes
0answers
14 views

Excerpt text not showing in meta box, causing flush on update?

I've created a custom post type that supports excerpts. On a post update of this custom post type, the content in the textarea for the "Excerpt" meta box is saved, however it isn't output into the ...
0
votes
0answers
26 views

Get metadata of all files in the media

I need to retrieve metadata of files that are not images such as word, excel or pdf documents. I tried using get_post_meta( $post_id ); and wp_get_attachment_metadata( $attachment_id ); I'm only ...
0
votes
0answers
152 views

How to get Last post Id of custom post type in wordpress

I want to get last post id of a custom post type in wordpress. For this I tried this code- args = array( 'post_type' =>'soto_property', 'posts_per_page' => 1, ...
0
votes
0answers
17 views

Displaying randomly created meta values in wysiwig editor

I have already asked this question on stack overflow but I'm asking it once again here because i haven't found a solution to it yet. I am creating custom meta info for a post that will have null ...
0
votes
0answers
161 views

Changing a field value on submit using a PHP variable

Preface: Ok, I know people are going to tell me "use JavaScript" To you people I'll say "No! I don't want to!" but I have a valid reason: Problem overview: I have a plugin which ...
0
votes
0answers
14 views

How to render custom fields types that are available in custom fileds

I have a custom post type News created by custom post type plugins and i have added some fields like text, textarea, image, file, wisyywig editor etc using admin panel. now my problem is : i have a ...
0
votes
0answers
33 views

How can I have preview of articles divided in categories in one page?

I have now 8 categories and each I will have more than 20 articles (posts). In my homepage I wanna show all categories with 3 newest post in it. When I create new post/article, I wanna automatically ...
0
votes
0answers
73 views

Synchronize post (custom) across multisite?

I have a multisite web, created due to multi-language environment. Each web symbolizes the country, language, currency and pricing policy. But I need to do to when a user adds a new custom post ...
0
votes
0answers
26 views

I want to list my custom taxonomy with a custom post type in a plugin

I've created a simple plugin for a custom post type. What fully works with an arhive page and a single page. Now I'm trying to add ann taxonomy to the custom post type. // Register Custom Taxonomy ...