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

retrieve the oldest post id

I'm trying to get the ID of the oldest post with the post_type = job_listing and post_status = publish. I'm using the code below but it does not work. Could anyone please help me $oldestID = ...
1
vote
0answers
98 views

How to make the Awake or Unite theme to use the featured image as post image? [closed]

How can I make the Awake or Unite WP theme to use the post image from featured image instead of manually entering the post image URL in each post ?
0
votes
1answer
179 views

Sort by category and then date?

I'll try to be as clear as possible. My Wordpress site has multiple custom categories and posts types all which need to be displayed on the home page blogroll. But I need the first post on the ...
1
vote
1answer
1k views

Custom Post Type Pagination Doesn't Work in Wordpress 3.4

I have a problem when using Wordpress 3.4. My "Products" custom post type pagination doesn't work. Here is the code I use $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
0
votes
1answer
102 views

Display posts with tag that matches current post title

How would I show posts that have a tag who's name matches the title of the current post? For example if you are on a post called "Hippo" at the bottom of the page I would like posts with the tag ...
2
votes
3answers
2k views

Sends out email to admin

Are there any plugin or code that sends out a email to me (admin) when a author or writer publish a post?
0
votes
2answers
2k views

get_the_category listing in hierarchial order

Hello at the moment I'm wondering how I would be able to make this work to post in Hierarchical order within the post loop. <?php foreach ((get_the_category()) as $childcat) { ...
1
vote
2answers
1k views

How can I display widget in a Page or Post?

I am trying to display some widgets (Quora & Goodreads) widgets inside Page or Post. How do I do that without displaying it inside Sidebar?
0
votes
1answer
40 views

Change posts URL [duplicate]

Possible Duplicate: Permalink: postname EXCEPT for blog I have relented converted my website to wordpress and I have used index.php as homepage and blog.php(template for blog posts), but ...
1
vote
1answer
338 views

WordPress' ALL post count info on its dashboard does not match phpMyAdmin's ALL post count!

While phpmyadmin's wp_posts table reports something like this Showing rows 0 - 29 (10,223 total, Query took 0.0022 sec) SQL query: SELECT * FROM `wp_posts` LIMIT 0 , 30 Wordpress's dashboard ...
1
vote
2answers
990 views

wordpress post pagination with image buttons?

I'm trying to make a post pagination like this: button left image | 1 2 3 4 5 |button right image but I can't get it work. I've tried: <?php ...
0
votes
1answer
407 views

How to customize read more link

Situation is I have some posts which are showing in my home page there are some read more links(excerpts) after clicking on those links they go to the complete post page, now the issue is i want to ...
0
votes
2answers
53 views

Page template is accessing the incorrect posts?

Hi I'm attempting to create my own custom template that will have a format like this: <?php get_header(); ?> <div id="container"> <div id="top-half"> <!--fixed ...
5
votes
1answer
239 views

How can I safely increase the character limit for post passwords?

When I want to protect a post on one of my blogs, I like to use a passphrase instead of a password (albeit purely for the sake of creativity, not security — they're stored plainly anyway). However, ...
0
votes
1answer
954 views

insert a warning message into post-new.php

wondered if anyone knew the most elegant way to insert some sort of warning message each time someone tries to create a new post, i.e. 'please remember what you publish is your own responsibility', ...
0
votes
2answers
1k views

Do action on publish or update?

Is there a way to only do a section of code on a template if the post has just been published or updated? What do I need to wrap around that code? UPDATE: I need to check if any of my custom-post ...
1
vote
1answer
134 views

Showing posts from different categories and from custom post type

On my main page, I want to show posts from 3 categories, and 1 custom post type. Is there a way to get them together in one pre_get_posts function? Or do I need to query separately - once for the ...
1
vote
1answer
171 views

recent posts for different categories

I'm developing a theme that will have two recent posts section on the home page- one section for recent portfolio updates and the other for recent blog posts. I'm struggling with implementing these ...
1
vote
1answer
9k views

The hook for the AJAX Add to Cart button?

Anyone here ever had the need to add the AJAX add to cart button (the one located on product archives) on a custom query post output? Do you mind sharing the hook? I can't seem to find the correct ...
0
votes
2answers
185 views

How to enqueue scripts depending on post formats?

So I'm trying to enqueue scripts used for some post formats like video and audio and I could find a way to check what post formats are going to be shown on the page. I tried print_r on some global ...
1
vote
1answer
37 views

Email entire post contents

We're a small newspaper with our archives put into a localhost WordPress web server in-house. I'm looking for some sort of plugin that might allow the reporters to, say, click a button that would ...
2
votes
1answer
141 views

add image map script to post

when i add this script to my post html editor : <div style="text-align:center; width:1100px; margin-left:auto; margin-right:auto;"> <img id="wordlmap" ...
0
votes
1answer
103 views

Making my plugin create a page?

I have created a plugin that creates a table in the database and allows users to add an Item to the table. I would like each item to also create a page for its self so that when the items are listed I ...
0
votes
1answer
1k views

How to choose a sort order (for posts) per category? (ideally when creating a new category)

Assume I have a bunch of posts (articles) in two categories: "upcoming events" (cat=1) and "past events" (cat=2). When listing all posts of a specific category out of those two, category 1 shoud be ...
1
vote
1answer
132 views

which action to hook to in order to perform post-publish action

I have some functionality I've written in order to post the title and link for the post to twitter whenever a post is published. I'm wondering which wp function to hook this to? save_post has no real ...
0
votes
2answers
1k views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
0
votes
1answer
144 views

changing parent_id on post

I'm trying to change a post's parent via the wp_insert_post_data filter but I'm not having any luck. In the example below, I'm replacing any "parent" references with the id I want to set. function ...
0
votes
3answers
122 views

Do all wordpress themes a similar class name for content?

I was wondering if all wordpress theme have a similar class name for the content.. For example I know the class for post/content in the twenty ten and twenty eleven is .entry-content if not then ...
1
vote
2answers
131 views

Why is querying posts messing up my pages?

I am working on a theme at the moment and I have set up a post template. This post template is linked to some custom post types. When I query_posts for my post type on the actual post template ...
0
votes
1answer
48 views

Change post date in menu to post title

I'd like to have my posts displayed in the menu as a name, not as the date they're published. Is that possible? Regards Peter
1
vote
1answer
34 views

plugin to post from admin to flickr [closed]

I'm looking for a plgin which allows the admins to post to flickr directly from the admin panel when posting. I saw this and thought it would work but seems to only 'get' images not 'post' them ...
0
votes
1answer
74 views

Change content off every sixth element

I would like to create custom post query where i will list all my posts in the list. Then the tricky bit is to add different content to sixth element off that list. So something like this ...
1
vote
2answers
4k views

Get image from post's gallery

Is there any possibility on Wordpress to get an image from a post gallery? Images are not inserted in the post, are on it's gallery. I'm trying to do a "galleries index" page and instead having the ...
3
votes
1answer
3k views

Restrict custom post type to only site administrator role

How can I remove this custom post type from being shown in the dashboard for non admin users? /* Add Websites Custom Post Type */ add_action( 'init', 'create_website_type' ); function ...
0
votes
1answer
477 views

If statement to check if post has image

I have the following code. When There is only one image in the backend, the second image shows up with a little question mark instead of nothing. I am looking for a way to check if the image exists ...
1
vote
1answer
959 views

Check if Currently on Static Posts Page

I'm developing a website using WordPress 3.3.2 and have the Front Page and Posts Page set to use static pages. I'm trying to show different menus using wp_nav_menu() for the static front page and ...
0
votes
1answer
125 views

thumbnail image path and file path for gallery thumbnail images

what is the thumbnail image path? When asked for the file path for the gallery thumbnail image, what is needed? the terms: thumbnail image path and file path is not familiar to me.
4
votes
1answer
1k views

Post/Page Preview Template

Is there a way to have a custom template php file that is only used for previews instead of it using the single.php file? This way the user knows they are in preview mode?
0
votes
1answer
708 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
0
votes
1answer
724 views

Listing Specific Categories from Current Post with Depth

I've been on this for sometime and been having a ton of issues to find a proper way to do what I'm trying to achieve. An Example would be as follows: I have a featured Image with a rollover and I ...
0
votes
1answer
702 views

Custom post type filter is being applied to all of my posts

I've created a filter to alter the_title hook in one of my custom post types (thanks Chip Bennett for the snippet). The function is supposed to tell Wordpress to call the title from a custom field ...
0
votes
2answers
822 views

Display posts in three columns by category

I've seen posts which probably answer this, but unfortunately the answers are all a bit technical without telling you where the code should go? At the moment I have my posts directed to a blog page. I ...
0
votes
2answers
362 views

Set font size automatically according to number of words in post

By submitting a post for publication will be made a count of the number of words in the post and will add a div with font-size pre-set according to the number of words. If the post contains up to 50 ...
0
votes
1answer
43 views

Wanting to apply different featured images for each post

This is my first wordpress website here and so far it'll looking good. The only thing I have left that I just can't figure out is the featured image for my blog page. I have set the main blog banner ...
0
votes
1answer
30 views

adding my posts (author posts) in menu

I want to add "my posts" to main menu. By clicking on this, each logged-in user will see his/her own posts. I don't know how the link structure should be to add on the menu.
4
votes
1answer
1k views

has_archive=false on the default post type

On the default post type, why does the has_archive property equals to FALSE? $type_obj = get_post_type_object('post'); var_dump($type_obj->has_archive); // FALSE
0
votes
1answer
247 views

Display Notification Bar on Header on Certain Post Count

I want to display notification bar on header in my Wordpress theme when user submit certain number of post. I want to notify my author once they are submit amount of post. e.g. if (authorpost === ...
3
votes
2answers
1k views

Disallow Same Post Title

I am looking for some code where member can't use the same title as another post already having or used. e.g if there is a post with title "Amazing Australia Tour" than it should not allow to use the ...
1
vote
1answer
783 views

duplicate posts when trying to update a post using the wp_insert_post.

On an empty wordpress database, I insert one sample post using the wp_insert_post. Since it's an empty database, the first post I add ends up with id 1. And I check that in the wp_posts, everything ...
0
votes
2answers
320 views

How can I remove the first two words and shorten get_the_title()

Some of my posts' titles have leading words, followed by a colon. I am removing the leading words and the column of every post title in the loop with the following: <?php $title = ...