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

Trying to edit archive.php to only show post extract, with featured image

I am using two themes (full and desktop), so I am trying to get them to behave in the similarly. The archive.php for the mobile theme is doing what I want, which is to just show the title and post ...
0
votes
1answer
526 views

White Blank Page when Updating and Publishing Page/Post

I have a serious problem here, every time I publish and update a page/post it displays a white blank page.. here I don't know how to fix it.. is there anyone that can help me? Thanks :)
3
votes
1answer
284 views

Restrict users from editing post based on the age of the post

How can I restrict users (based on Capabilities) from editing their published posts after a custom amount of time. For instance, a user that can publish_posts (authors) can not edit a their post if ...
1
vote
1answer
405 views

slideshow is not showing in a post call with ajax

this is the code I use to call ajax posts in the same page. It's works fine but when the post is load the slideshow in the post (add via short code) is not showing.... the ajax call ...
0
votes
2answers
122 views

Paragraphs removed when using get_post_custom()?

I'm using a custom field plugin called Advanced Custom Fields to create custom fields, but i don't think that's what's causing the problem. When i fetch the custom fields from a template using ...
4
votes
1answer
104 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
1
vote
2answers
304 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
4
votes
3answers
6k views

Hook for post and page load

I need to run a function when a particular post or page is loaded. Is there any hook that lets me check whether a post is being displayed during page load ?
0
votes
1answer
130 views

Adding a time stamp on post view

Hi there we are using this ajax function to update the views of our custom "posts" if( !empty( $_REQUEST['action']) && $_REQUEST['action'] == 'update_view_count' && ...
-1
votes
1answer
707 views

wp trim function not working

Ok i have this code currently. <?php query_posts('category_name=widgets2'); echo "<div id='widgets-wrapper2'><div id='marginwidgets' style='overflow: auto; max- width: 100%; height: ...
1
vote
1answer
237 views

Get the author of the latest revision

I would like to display the author (username) of the latest revision of a post from inside the loop. I tried get_the_author(), which echoes the username and $post->post_author(), which returns the ...
1
vote
2answers
49 views

how to find user ids of all commenters in a post

Is there a function in wordpress that grabs all the users(user ids) who have commented on a post? I have the post id available.
0
votes
2answers
441 views

How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)

I currently have a members area for subscribers. I have already setup the ability for users to 'favourite' posts and add them to custom folders of their choice. Once they have added some posts to a ...
0
votes
1answer
35 views

Approve modified posts

I would to be able to re-approve my contributor's edits to an already published post. I.e, when they edit a post - it gets sent back for approval. Is there a way to do this?
0
votes
1answer
50 views

Have posts included on a page that share same category

I'm new to Wordpress so please bear with me. I have created a site with two levels of hierarchy: top level and secondary level. The secondary pages are grouped below corresponding top level pages. ...
-2
votes
1answer
51 views

blog post displaying within older post - loop issue?

I've got an interesting issue with my blog page- Currently, I have two test posts- "Test Blog Post" and "Test Blog Post Deux." Test Blog Post displayed as it should, however when I added the second ...
5
votes
2answers
427 views

Passing current cookies in wp_remote_get to get Draft Post Preview

I want pass current user cookies in wp_remote_get function to get a Draft Post Preview page content. I check already the questions: What URL do you pass to wp_remote_get to load the body of the ...
0
votes
1answer
46 views

Font shows up as Arial instead of Times [closed]

I am the webmaster of Palo Alto High School's online publication, The Paly Voice. We're using Wordpress, and for some reason occasionally chunks of stories change fonts. Here is an example. I ...
4
votes
1answer
2k views

Export WordPress Posts and Meta Information in CSV format

I need to export all WordPress Posts and related Meta information using an SQL query. I've managed to export just the Posts but realised that the Meta information is in another table. Could someone ...
4
votes
3answers
1k views

Setting a custom sub-path for blog without using pages?

Warning: fairly pedantic request ahead. I have a design that makes use of posts (I.e., the blog) and a custom post type called "howto". The site front page ("/") has a template that displays the ...
0
votes
1answer
718 views

Remove Content after <!--more-> tags

Here with the structure of content in text editor Content Before <!--more-> Content After I wanted to remove the "Content Before" in my single post so instead I have this Content Before ...
1
vote
2answers
7k views

How to call function within a page/post, to dynamically generate content?

I added the following function to the file functions.php function contentGenerator($param) { if($param) { echo "Content true"; } else { echo "Content false"; } } How can I call ...
1
vote
1answer
735 views

XML-RPC and post_date

I'm trying to set the post_date via XML-RPC and keep getting an error saying the XML isn't formatted properly. The code goes something like: $post = get_post( $post_id ); $response = ...
0
votes
1answer
49 views

displaying the categories post

I have this php code below for displaying the post from the specific categories. <ul id="sliderx"> <?php query_posts('category_name=slideshow&showposts=10'); while (have_posts()) : ...
2
votes
2answers
351 views

Testing for post title in 'if/else' statement returns no content

I'm testing for a certain fixed post on an about page, I guessed that the best way is to test for post title (?). Here's my code, what's going wrong? <?php if (is_page()) { ...
0
votes
1answer
378 views

limit posts per page

I am working with category.php. I have my posts returning how I want them, I am getting the child categories how I want them but now I am trying to add pagination and limit the amount of posts to 3. ...
1
vote
1answer
55 views

Cannot retrieve a custom RSS field from posts

The goal is to display a featured thumbnail micro thumb as a custom field in RSS. This is what I've done: //theme functions.php function rss_post_thumbnail($content) { global $post; ...
5
votes
2answers
556 views

How to Display Network Post Count?

Is it possible to display the total post count for all blogs in a Network? get_blog_count and get_user_count do so for blogs and users, but I can't find any methods to do so for post count.
0
votes
1answer
376 views

How to repeat a loop after 4 posts [duplicate]

Possible Duplicate: How to mark every 3rd post Style every four posts differently Is it possible to repeat this loop after four posts? (post 5 = post 1 css, post 6 = post 2 css, etc..) ...
0
votes
1answer
145 views

Wordpress Admin Tables in Post View

I'm trying to add my custom Wordpress table (similar to the links table) into the "New Post" view of a custom post type. I hope that makes sense.
0
votes
1answer
183 views

Can I hide only one category from admin post list?

How can I hide all posts from a single category and not show them in the posts admin screen.
2
votes
2answers
803 views

The correct way to call posts with ajax

I'm trying to write an image gallery plugin with jQuery. I'm using jQuerys $.post AJAX method to send and receive info from the relevant post page. Basically I'll be looping through the attachments ...
0
votes
1answer
136 views

Shortcode for tables which can include comma and linebreaks

Is it possible to make a shortcode for table which can include commas and linebreaks for its content? I've been trying to output something like this with shortcode: But it seems difficult. I tried ...
1
vote
2answers
914 views

Create dropdown list post

I want to create a drop down list that will list all the posts in the category. I want the drop down list to appear on every post. So for example if I view a post that belongs to category Apples it ...
1
vote
1answer
119 views

Custom order for Mysql array

I have a Page of Posts, each post has a Custom Field "expired" which contains a date in the format YYYY-MM-DD which is used to order the posts. This date is used for a script that tells the visitor if ...
0
votes
1answer
117 views

Setting default category for display

The default category for the page News is news. But I want the page news to show all posts. Not just news posts. All posts, includes news posts and engineering posts. When you hit the main site ...
1
vote
1answer
362 views

Setting pagination for images attached to a post

I am trying to figure out how to paginate a post for it's images. I have a custom post type set up to act like a gallery - images only. And would like to paginate the images. I am having a hard time ...
0
votes
1answer
183 views

How to change text (date) in post base on the day

So the question seem unclear, i rewrite it to hope for the best and get some great ideas. I write a WordPress Sticky post (always first on top). In that post text there is something written like : ...
0
votes
1answer
251 views

How to get the first post and second post in a wordpress blog?

is there a way I can retrieve the first and second post in wordpress... I have tried using get_post() but with that I have to put in a id. What if I don't know the posts id?
0
votes
1answer
205 views

How to show beneath posts the full category path?

My portal has the following category structure: CategoryLevel1=>CategoryLevel2=>CategoryLevel3=>CategoryLevel4 I assign posts to CategoryLevel4 but I want to show the full category path beneath each ...
2
votes
2answers
3k views

How to change order of posts in admin?

How can I change the order of posts in the admin dashboard, so they display alphabetically according to title, rather than latest first?
1
vote
1answer
413 views

Most recent post from another database

I am trying to add the most recent post from another Wordpress database (on the same server in all actuality), but am getting the following error: Fatal error: Call to undefined method ...
1
vote
1answer
56 views

How to create multiple version of single post

I am willing to create 2 pages for selected posts I have written. One in English language and another is in Hindi. Why not translator ? Translator translates many words in typical Hindi which makes ...
-1
votes
1answer
33 views

clicking on page title

In the website I'm looking for something so that I can disable clicking titles in category posts. Just want them to be a simple text not a link one How can I do that? Thanks
1
vote
4answers
1k views

How only display all post related to category

I'm trying to make a custom template for my category pages that only pulls in post under a specific category. At the moment, I am only able to pull in all post and not category specific... My code so ...
0
votes
1answer
381 views

remove older posts link [closed]

I use these following codes to delete older posts and newer posts links in functions.php but it still shows them. function remove_post_navigation() { remove_action('thematic_navigation_below', ...
0
votes
2answers
3k views

Is it possible to send blog posts via email to subscribers?

Would like to be able to send the blog post in an email mail to my subscribers, this would be great if it can be achieved through a plugin.
0
votes
1answer
106 views

why there are so many posts whoes post_type is revision? will these records waste too much database space?

from the following data we may know there are only 30 records which are meaningful, and there are 92 records of revision post_type which can not be shown on the blog. so will these records waste too ...
0
votes
1answer
37 views

why the posts queried from sql is more than those showed on the page?

i am using WordPress multisite, the issue i face is that the posts queried from sql is more than those showed on the page, the details is as follows: mysql> select count(*) from wp_137_posts where ...
0
votes
1answer
155 views

Preview page/post revisions without overwriting current content

Is it possible to add or update a Post/Page without it overwriting the current content that it on there? I need to make some edits to a page, but I need to have someone review it before I can publish ...