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
1answer
111 views

Enable comments for post when comments meta box removed

I've hit the issue described in '11: "Enable comments for post with comments meta box removed" and I'd like to ask for your help to adapt the mentioned there code to the current wordpress version. I ...
0
votes
1answer
709 views

Exclude a 'portfolio' custom category?

I have a custom post type called 'portcat' and I want to exclude one portcat category ('weather' - ID='5') from the page. I've tried 'category__not_in' => array( 5 ) but apparently this doesn't work ...
0
votes
1answer
153 views

Showing custom post type categories in the menu

here is my custom post type and category: //Register nav register_nav_menus( array( 'main_nav' => 'Main navigation' ) ); //Custom post types add_action( 'init', 'create_post_type' ); function ...
1
vote
0answers
287 views

Restrict edit, but allow preview for custom post status

I am developing a Wordpress site with Edit Flow plugin, so I can create custom post statuses to manage author and contributor posts more easily. So I have created custom post status and I've got ...
0
votes
1answer
737 views

Delete data from custom table when deleting a post

I want to delete post id form my custom table, when deleting a post. I have tried this way, nothing happened. Please help. add_action('delete_post', 'delete_data'); function delete_data($post_id) { ...
0
votes
1answer
280 views

alternative to wp_link_pages() that only shows link to last page

I plan to have posts with multiple pages that would receive updates (added pages) over time. what i want to do is to display the direct link to the last page of the post on the main index. for ...
1
vote
1answer
177 views

Reverse chronology of post listing

I"m working on modifying a theme that is based on 2010. I want to make the posts on this blog display earliest to oldest, but I don't see how to do this in the theme: I understand I need to add . ...
-3
votes
1answer
132 views

Allow User Can See His Post on his dashboard

I want to allow user that Post option display on his dashboard. Where User's Can Show only his post. How I manage this. Please Help me.
0
votes
0answers
91 views

custom search in theme doesnt work

the theme back end says Enable live search in posts and pages (post search is enabled by default). check boxes are Pages, knowledgebase, Articles, Faq, but they don't do anything. i think ...
0
votes
1answer
474 views

Insert data in custom table during new post creation

I want to in insert data in my custom db table when creating a post. Suppose there are three categories (php, wordpress & jquery). When i create a post in wordpress, i want to insert post id and ...
0
votes
0answers
77 views

Add Custom Post Type Categories to General Categories

I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me? Thank you.
2
votes
2answers
2k views

Related Posts by Multiple Tags?

I was curious if was possible to display related posts by multiple tags. The site I am working on has about 5 tags per post. Most posts have 1 or 2 tags in common. The related posts I'd like to show ...
-4
votes
1answer
39 views

Change from blogger to wordpress

I would like to change my blog platform from blogger to wordpress. My website is: http://www.hdpeak.net I would like to keep a similar template and all the posts. What are the necessary steps I ...
0
votes
2answers
994 views

How to display only one category in a custom post type?

I have a custom post type called 'portcat' and I want to display the results of only one portcat category ('games' - which has an ID of '3') on my page. The below code displays all of the categories ...
0
votes
1answer
211 views

How to auto strip hyperlinks & images in wordpress post

I creat a post form on front-end for wordpress members by use DJD Site Post plugin. Plugin url: http://wordpress.org/extend/plugins/djd-site-post/ And now i want to auto strip all hyperlink & ...
0
votes
0answers
287 views

Displaying only posts from a certain category on my custom page template

I want to create proper pages for my post categories, rather than just a default category page. So for example, I'm going to create a Video page and have a load of information about my videos, and ...
0
votes
1answer
29 views

Number of displayed posts

I have tried many things to solve this problem. So I have a plugin which displays projects assigned to users in a widget. It displays projects as posts. The problem is that it only displays 5 ...
0
votes
0answers
129 views

Why is $_POST Empty in Profile Edit Admin?

This is a very odd problem - post data seems to be empty in the profile editing page of admin. Here is my code: http://pastebin.com/3ejg8P99 What causes this? Is there some "safety" step I've missed ...
0
votes
1answer
19 views

How do I change the location of post-specific information?

On each post page is the following information displayed: Written by: nona Date Posted: April 24th, 2013 Category: drawing writing reading, General Comments: 3 Comments » Here is an ...
0
votes
1answer
264 views

Hide parts of the post content on the home page

I have a post that contains a video (or a slider) and some text. Is it possible to hide the text on the home page, but still display the rest? How would I do that?
1
vote
2answers
95 views

How to Separate CPT From Regular Posts?

I'm just starting to populate my CPT. I want to keep it separate from regular posts. But when I go look at regular posts (in the single.php template), the Prev/Next nav includes CPT posts. ...
0
votes
1answer
1k views

load more posts by category

Well as you can see here im doing a load by category in every tab i have and show a total posts of 10 by each tab i want to setup once the 10 posts are done. i want to add a load more button to the ...
0
votes
1answer
32 views

How to make only posts show date

Made template but how to make date to show only in posts not anywhere else? <div class="date"><strong><?php the_date(); ?></strong></div> This makes date to show in ...
0
votes
2answers
58 views

Display message depending on capability outside loop

I want to display a unique message on the post (single.php) page outside the loop on author box. I want the message to be different depending on the author's capabilities. So for instance, if the ...
1
vote
1answer
317 views

How to display posts via custom taxonomy terms using checkboxes?

I would like to have a form with checkboxes. Each checkbox would be a term of my taxonomy "cities". The idea is that if a user select any of the checkboxes, it should show all posts that are NOT in ...
0
votes
1answer
228 views

add <div> to end of post in the loop with plugin

I'm looking to add a <div> with some more html content to the bottom of specific posts in the loop. The the_post action can be used to add the <div> to the beginning of the post in the ...
0
votes
1answer
95 views

How to exclude the word “class” from being matched in search?

I would like to exclude the word "class" from being matched to the search term "lass". On a site I'm helping manage, the search term "lass" is quite prominent. Unfortunately, that matches the common ...
0
votes
1answer
205 views

Latest news mini images

I tried to find an answer on websites and other forums, but found nothing. I will try to explain my problem. I need to change my WordPress website so that it displays a small image for all news ...
1
vote
1answer
257 views

Changing the post date and time with function

What function can be used to update a post's post date and time to the current date & time?
-1
votes
1answer
36 views

How to make post stick to its own div

A Wordpress theme has 4 boxes in front page. Each box has its own posts. please see the screenshot http://prntscr.com/1231qw I want to let the user edit the post using admin panel and when he save ...
0
votes
1answer
244 views

Lightbox on wordpress post page

I am building WordPress admin plugin. In which I have a metabox with 10 checkboxes (It can be more than that). At below there is submit button. My requirement is: (A) open a lightbox when some one ...
-1
votes
1answer
4k views

How to get the post's parent ID?

I have a template which outputs the blog posts (Blog Page), I open one of the posts which use single.php template, Now how can I get the ID of it's parent which is the (Blog Page)? I should say that ...
2
votes
1answer
597 views

How do I use inline SVG in WordPress

I am trying to put in an SVG inside my post, but it seems WordPress removes the content. e.g. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 ...
0
votes
0answers
128 views

User driven content problems

I am trying to build a website that will allow users to post from the front end. I need to be able to have the user enter a title, a category, and tags. For the content of the post, I would ideally ...
0
votes
1answer
44 views

Changing permalink of custom category

I've tried reading up on past posts here but my head is just spinning. My problem is I'd like to change my permalink structure for a custom full width posts under a custom category. For example, ...
0
votes
0answers
109 views

How to add audio media in a post?

I am simply trying to add an audio file in a wordpress blog! I have tried different audio player plugins: the non-existing anymore (?) haiku minimalist player, the jQuery player, the ...
1
vote
2answers
1k views

Code to auto expire posts after 30 days

I've tried the plugins that are available in the Wordpress plugins section but they seem to fail miserably. Initially, I used Auto Post Expire By User Role which worked for a time, but for some reason ...
0
votes
0answers
53 views

How can i retrive the movies, trailers, news in a single page using search

How can i retrive that. For a few month i build a website, and i want to make it diferent For the search i have 3 post type, and i have for each diferent themes for display - Movies - Trailers - ...
1
vote
1answer
197 views

Add a class to post title if a link ends with a certain extension

I am using a Page Links To plugin that allows me to link the post title to an external web page, rather than to the content of the post. And I link some of the post titles to external pages, and ...
0
votes
1answer
136 views

Change the default video URL in a post to shortcode format

I want to add video from youtube/vimeo to my post.Whenever i add a video to my post ,there will display a link like https://www.youtube.com/watch?v=dsUXAEzaC3Q in my admin(Add new post ),and in the ...
0
votes
2answers
625 views

How do I show posts from another wordpress installation?

I have looked around and I cannot seem to find an answer to this question. There are similar questions/answers but none I have seen managed to answer this question, so I am sorry in advanced if I have ...
2
votes
1answer
30 views

Set attached to state

In the media library every attachment post has an "Attached to" column. I've developed a plugin that adds author profile and a facebook like banner image. I now discovered that the attachment posts, ...
0
votes
1answer
181 views

Get post category as a separate string and url

I need to figure out how to get post category as a string and link, both separate from each other. So the return would be something like: Uncategorized http://link-to-the-category.com however both ...
0
votes
1answer
89 views

How can I create a menu items from meta box based on users input

I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
0
votes
1answer
26 views

Finding a post's slug

I'm using wp_query() to get custom posts from the database. I want to list these out as links to the entries, so I'm thinking I could use the slugs. Sadly these don't seem to be included in the ...
0
votes
1answer
608 views

Get post meta retrieving wrong value

I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
0
votes
0answers
39 views

Can I set a CPT title field to a dropdown with preset options if user is of a given type?

I am using the WP Property plugin so I have a Property CPT. I also have building managers who will be creating these new CPT posts. Is it possible to set the post title field to be a dropdown field ...
3
votes
2answers
634 views

How can I add dropdown widget/box to admin post page?

I am trying to figure out how to add a dropdown widget to the post page. The reason I ask is because I would like to be able to have a few different post classes that the user can select while making ...
1
vote
1answer
631 views

How to display following posts titles in separate div's on a separate webpage

Intro: I have a webpage that is not part of wordpress. I have incorporated the wp blog posts, by putting The Loop in the page's code. This works, it displays the current posts and their following ...
0
votes
1answer
363 views

Count user posts and store the number for later use

I want to count author posts and store this number for later use even if some of the posts have been deleted in the meantime. $rows = $wpdb->get_results( $wpdb->prepare( "SELECT post_status, ...