Tagged Questions
2
votes
1answer
15 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
18 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
30 views
Top 30 Songs using Custom Post Type
I have successfully created a Top 30 songs ranking via custom post type. Now im stuck with adding "Peak Position" post meta. I don't know how to program it. Peak Position is the position where the ...
1
vote
1answer
80 views
Better post meta efficiency?
I work with websites which require using Post Meta for Post Objects within a particular Post Type.
I often add a Meta Box to a particular Post Type, to provide additional settings for the new Post ...
0
votes
1answer
55 views
How can I sort posts by the date and a custom meta field?
I have custom meta field that I use for the post rating.
So I want to display posts by the date and the rating, but only for the posts that have specific rating.
For example, I want to display posts ...
0
votes
1answer
195 views
wpColorPicker - problem with implementation to post meta
I need your help as I am stuck and Google does not return anything, so I must be doing something obiusly wrong here, I just don't know what.
Basically, I need color input in one of my custom post ...
3
votes
2answers
588 views
How to add category to: 'wp-admin/post-new.php'?
I want to have a link to create a new post that sets the category also.
I have tried wp-admin/post-new.php?post_category=12 and wp-admin/post-new.php?cat=12, but neither worked. I also tried using ...
0
votes
1answer
62 views
Site 'Categories': save an admin global setting with post metadata [closed]
In WPMU, we are using Site Categories (with Sitewide Tags), but for the life of me I can't see how the category of the sub-site (say, departments in a school) to which each blog belongs ends up in the ...
0
votes
2answers
114 views
PHP Notice error (when on 404 page)
I have a 404.php template for my theme. I also have WP_DEBUG in wp-config.php set to TRUE.
Consider this 404 template:
get_header(); ?>
<div id="content" style="full-width">
<div ...
0
votes
1answer
130 views
Add custom field automatically (add_post_meta) with value based on number of words of article
In this topic our friend @toscho created a function that sets the font size according to the number of words in the post. Based on this function, I want to create a custom field whose value will be ...
1
vote
1answer
204 views
is there a way to show the the post title after the image?
Trying to show the post title after the image in the main blog page and single page, I have tried to edit the content.php but unable to achive the result I need, which is basiscally
IMAGE
TITLE
META ...
2
votes
0answers
140 views
Change post format using custom field
I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do:
Create a new standard-format post
Enter a url ...
4
votes
1answer
407 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 ...
1
vote
1answer
45 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;
...
0
votes
2answers
376 views
Adding Multiple Values to a Post Meta Key
I have a question about adding multiple post meta values to a post meta key.
Here is a link to the WordPress add_post_meta(); function in question.
The $unique parameter is a little on the fuzzy ...
1
vote
1answer
295 views
Change slug with custom field
I want to change the slug of a post with a custom field.
In example, if the custom field is "keyword" my post link will become: mysite.com/keyword.
If the custom field is empty, i want to generate a ...
0
votes
1answer
583 views
How to check if post meta key exists or not in wordpress database
I want to check if post meta key exists or not, out side of the loop. Is there any WordPress function to check if post meta key exist or not in WordPress database. I have to check this outside the ...
0
votes
2answers
84 views
Show related (archive) month and year to post
I want to show the related (archive) month and year for a post next to its contents, i.e. "Archived in January 2012". Any help / directions is greatly appreciated.
0
votes
3answers
111 views
How to automate featured posts number? [duplicate]
Possible Duplicate:
featuring old articles without messing up with the archive
Let's say you have a category called "featured". and you use that to feature posts.
And the theme you have has ...
4
votes
1answer
351 views
Update all posts automatically when using post_meta
I recently created a new site using wordpress but I'm a rookie - everything I know is trial and error with no formal training. So please, please, please keep your answers as simple as possible. Thanks ...
1
vote
1answer
33 views
I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
My website is a multi author blog. I would like to give special promotion for the first 100 published posts in my blog?
What is the proper way to implement it? I mean should i add some meta value ...
0
votes
1answer
983 views
How to batch update post content with custom post meta value
I have a custom meta box, using WPAlchemy, in which I am looking to get rid of. However, I would like to get all posts that have a specific custom meta value set, and insert it into the begininning of ...
0
votes
1answer
190 views
Link Posts to External URL
I'm building a site which lets users to submit links using User Submitted Posts plugin. I want every post title to link to its URL something like reddit. Moreover, User Submitted Posts plugin add URL ...
0
votes
2answers
2k views
Returning multiple get_post_meta values
I am looking for a solution to returning multiple get_post_meta values...
Current I am using a meta box array as follows:
$meta_boxes[] = array(
'id' => 'setlist',
'title' => 'Setlist ...
1
vote
2answers
2k views
Wordpress Orderby Numeric Value Not Working
I am trying to get all products from the wpsc-product post type and then display them by a custom meta field called release_date_year. However, it doesn't appear to be ordering my posts by this custom ...
1
vote
1answer
196 views
Post image in WordPress not appearing on home page
I just installed WordPress and I'm trying to set a image to every post I have.
I did this:
Custom fields ----name: paddimage-gallery --value: URL of image.
I go to my home page and it does not ...
6
votes
4answers
13k views
WP insert post PHP function and Custom Fields
The wordpress function is used for submitting data programatically. Standard fields to submit to incude the content, excerpt, title, date and many more.
What there is no documentation for is how to ...
1
vote
1answer
282 views
Set Expiration Date of a Post from the Frontend with wp_insert_post
i try to build a form that users posts from frontend,
everything works fine but i need to know if it's possible,
if i play with the 'post_date' => date('Y-m-d H:i:s')?
if i add a hidden field that ...