Tagged Questions
0
votes
1answer
37 views
Delete old post with new post
Hope you can point me in the right direction, with a plugin or function.
With "Contact Form 7" logged in users post their info with "Form to Post" plugin.
Everything is front end.
It is a big form ...
0
votes
1answer
34 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
65 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
2answers
109 views
Hooking into the post editing screen for an existing page only
I am working on a Wordpress theme that hides the default WYSIWYG editor and replaces it with a custom module system which is fine and dandy, but I've come to the realisation if someone were to use the ...
0
votes
1answer
45 views
get_post_meta property of non object
I am getting a custom field outside the loop in header.php. I get the custom field just fine but I found that when the custom field is empty, I get an error message
Trying to get property of ...
0
votes
1answer
108 views
WP_Query orderby not working with meta_value_num and menu_order
I have made a custom post type (sidebar_element) which are shown on sidebar. On each sidebar element admin can choose where in sidebar should that element be shown, ie. 'top', 'middle' or 'bottom', ...
1
vote
1answer
81 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
191 views
Add custom field to all posts in specific category
I want to bulk add a custom field (category) with value (photography) to all posts in a specific category (photography, with Category ID 5).
I have used the code below to bulk add a custom field to ...
1
vote
1answer
41 views
Query Posts With Over 1000 Views
The code below is from this link. It basically creates a hit counter, but I'm probably gonna have to do this by IP.
How do I make a WP_Query, where only posts up to 1000 views can be seen on the ...
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
3answers
90 views
Display a custom field rating system in the front end
I have added a content rating system to my platform where the authors can select which audience their post is appropriate for. Currently, these options are available:
Unrated
G
PG
...
0
votes
1answer
28 views
Display code if title of the custom post matches title of other post
I have two custom posts, one called "reviews" and another called "guides".
I want to display a custom field from the post reviews if the title of the two matches.
Something like this: (I am not good ...
0
votes
1answer
70 views
Making a form for user to add new custom post with custom taxonomies and custom fields
I want to ask that is there a way display all my custom taxonomies in a drop down menu with checkboxes so when the user check any taxonomy it will be slected and when the user click the submit button ...
0
votes
1answer
237 views
Why my meta boxes won't show in front post page?
I see it everywhere: in single post, in category archives etc, but in front page post not.
I display the metaboxes in this way:
<?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
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 ...
0
votes
1answer
67 views
Home page: using custom fields for posts and pages
in my home page I'd like to display some pages and posts title using the custom fields.
Unfortunately my code prints only posts title.
If there is a key "highlights" print the title.
Here my code:
...
2
votes
0answers
142 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 ...
0
votes
1answer
48 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 ...
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
1answer
49 views
How would I attach media/images to a post based on a ID stored in a each post's custom field
I have converted a site over to wordpress recently. I was able to import all the posts via a CSV importer, but not the images associated with each post. The post type is "machinery". The custom ...
0
votes
1answer
225 views
Adding external field to my post form (admin side) and to post show (frontend side)
I would like to add a "Source" field to my posts form so I can show from where I get the published info. Didn't know if this exists already because I'm just starting with WP. So I do some research and ...
0
votes
1answer
518 views
How do I insert a custom field in a user submitted post?
Please help! I have a form for users to submit posts, and I want them to be able to choose photos already in the media gallery based on category selected. I want to include radio buttons to choose ...
0
votes
1answer
199 views
Dynamically Add Custom Fields in Posts
I'm building a resume website and I would like to manage the data in custom fields.
For examples I would have multiple meta boxes: Education, Work and Competencies
In Work I can have multiple ...
2
votes
1answer
316 views
Add a checkbox to post screen that adds a class to the title
I'm needing some posts to have different title colors than others, and I figured this would be most conveniently accomplished by some sort of check box on the post creation/edit screen. How would I go ...
0
votes
1answer
122 views
How to rate a post from Admin Side / Manually?
I am working on a Mini Job Site.
i want to give rating to posts manually from admin / editor side
Best rated people will be on top. so visitor'll get better choice.
visitor are not allowed to ...
2
votes
1answer
361 views
HTML code in Custom field
I'm using a custom field to display images in a slider on each post, but when I update the post after having entered the HTML code in the custom field, the code disappears. I'm assuming that there is ...
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 ...
0
votes
1answer
337 views
meta_box or custom_field as a second tinymce post-instance?
probably a rather weird question but I have no idea if this is possible or not!?
I created a custom-post-type to handle events. An event always has a future date but once this date is over I want to ...
2
votes
1answer
913 views
add_meta_box: Datepicker like the one for postdate?
I've built a custom post type called "Events". Each event has a future date and I don't want to use the normal postdate of the post.
I want to use add_meta_box to add some inputs for this ...
0
votes
1answer
399 views
Front-end Image Upload to Custom Meta Box
I'm currently using a custom post type with a custom meta box for two image uploads.
I'm trying to create a front-end post page where the user can upload their own images from their desktop. All of ...
2
votes
2answers
197 views
Autoremove empty custom fields
The code you see below only works sometimes. I'm no pro on PHP so can anyone help me improve this code? I use it in my functions-php file in my wordpress mu setup.
The biggest problem is that it wont ...
0
votes
1answer
32 views
Attaching global meta to custom fields
I post music videos on my site and I add the artist name as a custom field to each post. I want to associate certain meta with that artist name so I dont have to enter it everytime like the artists ...
1
vote
2answers
440 views
Adding a Nav menu to post admin
i want insert a dropdown menu with list of menus, that i've created in nav-menu.php, to post-admin...
For example, when i'm creating a post, i want insert a menu "Paul" in a post (only a post that i ...
0
votes
1answer
227 views
How To Use Custom Fields With .mp3 Links
Hope it doesn't seem to shallow of a question, but I've searched the web as much as I've could and have not found anything similar yet.
:: Creating a regular post; How can I place a .mp3 link in a ...
0
votes
3answers
175 views
how can display a post on home screen without images
When i post something with an image, its also displayed over homepage..
And my post has image some images inside the content of the post.. and I am not using any featured image..
How can we display ...
0
votes
1answer
225 views
Display content between two dates?
I want to display a meta field between two dates, the admin can set the two dates via the custom fields.
How can i make such content show between the dates set?
Thanks
Matt
0
votes
3answers
105 views
First Custom Post Custom Fields Empty After New Custom Post
I am working on a theme which contains a custom post type with custom fields.
Everything is working perfectly except the when a new custom post is added, the custom fields for the first custom post ...
2
votes
1answer
3k views
How set featured posts using checkbox in post edit screen?
I want to make selecting a featured post is just by checking a checkbox in edit screen AND be able to retrieve these featured articles from only specific category ?
in short what I'm looking for :
...
-1
votes
1answer
564 views
Front end add custom field to existing post [closed]
I know how to create a front end new post form through tutorials but I'm confused as to how to make a front end custom field that allows user to add data to existing posts
0
votes
1answer
144 views
Will multiple category descriptions effect my search engine optimization?
I plan to use the category descriptions as outputted content into my posts for site user searches within my site, but I want to know when I make the site live to search engines will that presence of ...
0
votes
1answer
974 views
Automate post update for all posts?
I have managed to fill custom fields with certain predefined values of all my post, but the changes don't take effect until I manually update the posts.
Example:
// Predefined variable and value
...
1
vote
1answer
260 views
Populating a page with content from post custom fields
I'm doing up a blog at the moment where each post is accompanied by the name of a song. Adding the songs to the posts is fairly easily done via custom fields.
However, I also need to have a page ...
0
votes
1answer
135 views
How to Do Custom Fields to Output a Definition List
So, I'd like to add some custom write panels when you go to write a new post in the WP admin. I'd like it to have a heading for each, and then a text input field where I can write in some text. I ...
0
votes
3answers
2k views
Prevent duplicate posts in wp_insert_post using custom fields
My source links are something linke this :
http://sample.com/entertainment/default.aspx?tabid=2305&conid=102950
http://sample.com/entertainment/default.aspx?tabid=2418&conid=104330
...
0
votes
1answer
97 views
Checking for custom field in admin pages
I am loading some scripts conditionally for the admin section with :
if (is_admin()) {
wp_register_style('admin_js', get_bloginfo('template_directory') . '/admin.js');
...
0
votes
1answer
158 views
Edit multiple custom post types while saving a new or edited post
I have a custom post type with some custom fields in it.
Now what i want to do is when i save a new OR edit an existing post in that post type, is to change custom fields from all the other posts of ...
2
votes
1answer
394 views
How to hook get_terms() to only show count of posts that have custom meta
Here is what I have:
A custom post type that has a custom meta value added to a post that stores the posts expiry date. When the post passes this expiry date it no longer shows on the site.
This ...
1
vote
1answer
1k views
I am trying to create a simple frontend form for posting
i am trying to learn and create some deeper things with Wordpress. My goal is to create a code/script/plugin that will allow me to post from the frontend.
I have seen many plugins, like templatic ...
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 ...
2
votes
2answers
660 views
How to change what the post creation page looks like?
Is there a way (plugin, or something else) to set it where there is a drop down on the "New Post" page that allows you to choose a post type and the fields change allowing you to filter what content ...


