custom-fields

Implementing custom fields with ALTER TABLE

We are currently thinking about different ways to implement custom fields for our web application. Users should be able to define custom fields for certain entities and fill in/view this data (and possibly query the data later on). I understand that there are different ways to implement custom fields (e.g. using a name/value table or us...

Get all custom fields that belong to a certain box in Wordpress

How can I get all custom fields that belong to a certain box only. For example, I am using the "more fields" plugin which allows me to create boxes of custom fields for instance a box called "hotel features" with different custom fields as the particular features. Teh point is that when I extract meta data in the template, there is no...

Duplicate Option Values on Drop-Down List Element

Hello everybody, I'm using this codes for listing custom field values into drop-down list element on this category in Wordpress (screenshot is here what i'm point out). So there are duplicate items on drop-down list and how i can delete duplicate entries on list? Thanks in advance. ...

Drupal using views with CCK custom fields

I've got a Drupal site which uses a custom field for a certain type of node (person_id) which corresponds to a particular user. I want to create a view so that when logged in, a user can see a list of nodes 'tagged' with their person_id. I've got the view working fine, with a url of my-library/username but replacing username with a diffe...

How can I attach a file using Wordpress custom fields / meta boxes?

I am using Wordpress's add_meta_box() function to add customized meta fields to the Add New Post page, like this. I want one of these fields to allow the user to upload a file, so that a single image, pdf, audio file, or video can be associated with the post. The closest example I've seen is this one (link removed*). Unfortunately it do...

Rookie PHP question sorting result of custom field

I use this to pull values from a custom field with several values: <?php $mykey_values = get_post_custom_values('services'); foreach ( $mykey_values as $key => $value ) { echo "<li> $value</li>"; } ?> I want to sort the output according to the way I have set up the values in the key (alphabetically) ...

How to remove Custom Field section from Wordpress?

Hi, I am trying to remove custom fields section from Wordpress backend. I think I found a function that display custom fields. The function is located in wp-admin/edit-page-form.php line 181. do_meta_boxes('page','normal',$post) when I remove the function, Wordpress does not display other boxes as well. How do I remove a particular...

Hide Custom Fields in New Post?

I just started out with WordPress and I'm having some problems with the custom fields. Here's the code from functions.php add_post_meta($post_id, 'Post Thumbnail', $post_thumb, true) or update_post_meta($post_id, 'Post Thumbnail', $post_thumb); add_post_meta($post_id, 'Project URL', $url, true) or update_post_meta($post_id, 'Project URL...

[WordPress] Paging on Index Page Not Working With posts_per_page

I'm working on a theme that has both a project page and a blog. I want to keep the blog posts at the default of 10, so I used the posts_per_page option to limit the number of projects on the first page, like this: <?php $catID = get_cat_id('Projects'); $number = get_option('grd_portfolio_number'); if(have_posts()) : $paged = (get_query...

Add Custom Field Key in functions.php

Is there any way to add custom field keys to the dropdown of the custom fields on the "add new post" page without adding the fields like in the screenshot below? ...

Adding extra fields for an AddressBook contact using iphone simulator

Hi EveryOne, I was new in iPhone application development. As i might have gone through native applications, i was struggling from 1 week, for adding new fields to a particular contact of AddressBook. As we might have known that it is not possible to edit addressBook details, i want to bind those values to sqlite3 table & then i thought...

RenderPattern headache with WSS 3.0 Document Library

Hi All, I'm trying to define the DisplayPattern of a custom field to do as follow. It's a simple text field used in document libraries, but i want the text entered to be displayed as a link to the document in the list view. <URL Cmd="Display"> gives me the display form, but I want the link to actually download/open the document... I c...

WordPress: Using custom field to define posts to display in loop

Hi, I'm trying to use a custom field in which I input the post ID numbers of the posts I want to show, seperated by commas. For some reason though, only the first post of the series of the post IDs are displaying. Can someone help? The value of $nlPostIds is (minus the quotes): "1542,1534,1546". Here's the code... the most important pa...

wordpress custom fields

When adding a new post the custom fields from a previous post are showing as meta data for the new post. Is there some way to clear these fields when a new post is being created or is there possibly an issue with my installation? ...

Django custom field - automatically add COLLATE to query

Hello, I'm trying to create a custom field which would automatically add COLLATE information into the WHERE part of SQL query: class IgnoreDiacriticsField(models.TextField): def get_prep_lookup(self, lookup_type, value): if lookup_type == 'exact': return ' "' + self.get_prep_value(value) + '" COLLATE utf8_genera...

SharePoint Custom Field - is it possible to handle item deletion event?

I'm expanding SPFieldText and BaseFieldControl to create a custom field. The field saves some data externally (for example, on a database or on another list) Within the control I'm able to handle Edit and New events (using ControlMode). I'd like to run a function and clean up some data when an item containing my field is deleted. Is t...

problem breaking up one SharePoint project into pieces

I'm trying to break my sharepoint project into a few smaller projects. I could easily move utility files in different project. However i encountered a problem when i moved custom-fields. If i move custom-field from ProjectA to ProjectB and set ProjectA to reference ProjectB's DLL, building and deploying work fine. However, when program ...

[Approach] Multilang catalog(with custom fields) DB structure design

Hi, Soon I'll be working on catalog(php+mysql) that will have multilang content support. And now I'm considering the best approach to design the database structure. At the moment I see 3 ways for multilang handling: 1) Having separate tables for each language specific data, i.e. schematicly it'll look like this: There will be one tab...

how to add customfield in filter

i have created one custom field on view i want add filter on it how can i add it to filter here is problem of adding filter on custom field of view Thanks in advace ...

migrating django-model field-name change without losing data

I have a django project with a database table that already contains data. I'd like to change the field name without losing any of the data in that column. My original plan was to simply change the model field name in a way that would not actually alter the name of the db table (using the db_column column parameter): The original model...