Hello Support,
I have used the plugin Custom Metadata Manager in my WordPress site. I have try to get the Editor in my custom post type using the below code:
x_add_metadata_field(
‘fsdescription’,
$post_type,
array(
‘group’ => $gg, // the group name
‘multifield’ => ‘featuredstories’,
‘description’ => ‘Story Description’,
‘label’ => ‘Description’, // field label
‘field_type’ => ‘wysiwyg’,
)
);
But it is not working. So Kindly help me to fix this ASAP.
Thank you
]]>Will the plugin receive the update from the repo?
thanks
]]>I’ve created a simple text field where I add a link to our podcast MP3. using a template edit, this link then appears in the post.
That all works fine.
The mp3 link in the RSS feed isn’t getting formatted correctly (for a podcast) in the feed though. It should appear in the <enclosure> tag, which is important for external services that use that feed to subscribe to our podcast
The only way I can get it to show is by not using the custom meta data field and adding the link directly in the post – which sort of defeats the object.
Any idea why the RSS feed wouldn’t recognise the mp3 as it usually does and add the <enclosure> tag? Anything I can do?
More info on enclosure tag here: https://codex.www.ads-software.com/Podcasting
“Podcasting is seamlessly supported as of WordPress 1.5. Add a link to an audio file in a post and WordPress will automatically add the necessary enclosure tag to your RSS2 feed to make it useable as a podcast.”
Thanks
]]>I’m using the field_type “upload”. When I upload an image and click “insert into post”, nothing happens. The image does get uploaded and can be seen under the tab “Gallery”, but it is not put into the text field.
This has worked for previous versions of WordPress, and I do not see any script errors in the developer’s console.
]]>Hello,
we have a plugin which uses following hooks and after installing your plugin, these stop working:
manage_users_columns
manage_users_custom_column
The plugin is Thoughtful Comments: https://www.ads-software.com/extend/plugins/thoughtful-comments/
Is this a bug in your plugin?
What happens to these hooks? Do you just disable them by design?
Please let us know.
Thanks,
Martin
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hey Guys,
I am a newbie planning a new website (similar to a small, limited Craigslist) where LISTING CLIENTS use Numerous Meta Tags to list their stuff for sale by inputting Meta Tag Fields such as: couch/chair/table/lamp, Black/brown/green, size, price range, etc…
Then BUYING CLIENTS will SEARCH the site to find items to purchase…Are these Meta Tags Searchable?
Will your Meta Tag Plugin allow Listing/clients (not admin) to input Meta Tag Fields of their used items, and allow Buyer/clients the ability to search thru these Meta Fields to find the item of interest…ie search: Brown leather couch within 10 mile or 25 mile radius?
Would Listings be posts, pages or other?
Thank you for your support.
IF you pluging will help develop my site as planned, I will be happy to support your plugin. ??
Best regards,
Jim H
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hi,
first, thanks for this awesome plugin, it helps me to do what i need and what i was searching for a long time.
But, i have a problem with the media manager. When the plug in is active, i am not able to add an image in a post for exemple. I can upload the image but when i click on “insert the image in the post”, nothing happen.
I am sure the problem is only reproduce with the plugin.
Thanks for your help,
best regards
Cédric
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>but when you put a wysiwyg it pop up but you don’t have the right to upload with it.
error message from WordPress: “Cheatin’ uh?”
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Does anyone know why meta fields may not update? I thought it had something to do with autosave but don’t think so anymore. I made a custom field (wp standard) to match the name of the custom metadata manger field and it actually updated into the input box correctly but if I try to edit it (the metadata manager field) nothing happens. Could it be a database sync issue? I have the same site running on a test server online and it works fine there but not on the production site.
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>GREAT plugin, thanks so much!
I’ve added a cloneable textfield, which saves correctly! But I’m wondering, how can I display a cloneable text field?
I tried the same way I do for other fields, but this only displays one of the values.. How can i get all the data from the array?
thanks in advance,
Ben
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Installed and activated. No settings or options for plugin. No new options for post editor.
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hi there! Thanx for this great plugin, I`m using it all the time!
My question is… Is there a way querying values based on the group they belong? Something like ‘get_metadata_by_group(“group id”)”, which would return all the fields as an array from that group.
thanx!
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Is there something like this for site settings to sorta augment the settings API that anyone can recommend?
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hello, thnx again for great module.
There is little bug in custom-metadata-manager.js in line 40:
if (!file_url) { imgurl = jQuery(html).attr('href'); }
Result must be saved to file_url
variable rather than imgurl
which is not exists.
This bug not allow save not image files to upload fields.
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Thnx for great module!
Your module has killer feature – it allows multi value fields,
but what about multi value group of fields?
For example I have two custom post metas: Language and Level
and want both of them to be multivalued
So, probably this fields must be contained by multivalued group
that will have Add more button
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>It took me awhile to realize this wasn’t something in my code. While all the other field types look great with the style you’re using (bold label above, followed by field) and I have read before that vertical stacking is good for usability, I just don’t think it works for the checkbox. Having the checkbox alone on a line with just a heading above it looks totally wrong, and I would be very empathetic to any user who got confused by it. Checkboxes need something next to them. In your example screenshot I think the problem is already visible, but subdued because there is only one checkbox. If you have 4 checkbox fields in a row the issue really starts to sparkle.
In theory having two labels for each checkbox could work, like if the bold heading was “sharing options” and next to the checkbox it said “show sharing tools”, but that is overkill and in this case I think we just need to have checkbox followed directly by the label text already deteremined by the API calls (I managed to mock it up and it looks good).
I looked at the code in _display_metadata_field()
and I can see why you chose to leave the checkbox on its own line. Having one layout to rule them all is very convenient and the way the code currently flows implies deeply that even though the checkbox looks crazy right now, it’s the way it is supposed to be. That said, I think you should reconsider and find a way to put the checkbox and it’s label on the same line for the sake of usability.
The essential change needed is to have the label come after the checkbox. If you do that, then you just have to make the label and divs inside the label display:inline-block
to have it look and flow great. IMHO this UI would be fine alongside the other field types with their labels above them, having inline checkboxes is totally standard throughout the web.
I’m not sure what the best way to code this would be though. The easiest choice would be to add a check above the display of the <label>
tag for if ('checkbox' != $field->field_type)
so that it doesn’t show for checkboxes, then add the label display after the checkbox in the switch
section for ‘checkbox’ (i.e. duplicating the label display code). Personally that seems hacky but I’m not sure how attached you are to the current layout and it would definitely work and only involve changes to two lines of code.
A much more convoluted but also more elegant solution would be to add some kind of “label_position” property to the $field object and use it to trigger before/after placement in _display_metadata_field()
, thus having two instances of the label display, and only using one for each type of field. Really it would just be for checkboxes at this point (and probably ever, as there aren’t likely to be many more similar additions to web forms in the near future) so I can easily be convinced that it’s not worth it. It also feels like that metadata has nowhere to live, as it doesn’t really belong in the $field object because it’s not about that particuly field but rather a form of meta on the $field->field_type. Sigh.
Anyway, let me know if you want a patch for the first solution and I can work it out for you, though I feel like it might be easier for you to do it yourselves as it’s so simple.
Thanks for the great plugin as always! I’ll just use it as-is for now. It will be a fun test to see if any of my users complain, as I haven’t shown them the new version that has this issue yet ??
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hello,
this is a nice plugin, however it has some issues in latest WordPress versions.
Using the following simple declaration from plugin examples doesn’t work, the column is not added for users:
x_add_metadata_field('x_userField1', 'user', array(
'display_column' => true
, 'description' => 'This is a field for a user. Enter information in here!'
));
If I change “user” to “post”, it appears for the posts just fine.
Please get this fixed in next release.
Thanks,
Martin
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>I developed a custom type using the plugin and the display in preview mode is correct. But, once published, I receive a Page Not Found error. After some testing, I realized that it is the use of permalinks that causes the problem. The published pages are set to Custom Structure of /%category%/%postname% in Settings –> Permalinks.
If I set the permalink to default, it works. But, when I set the permalinks to the structure for production, the page not found error occurs.
Can someone make some suggestions on how to correct this issue?
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Version 0.5.6, line 845:
call_user_func($field->display_callback);
Any chance of changing it to:
call_user_func($field->display_callback, $field_slug, $field, $object_type, $object_id);
Please? Or at least the $object_id – I need to display other parts of the post meta.
Thanks!
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>It would be incredibly helpful if the customizable pieces of code in the sample custom_metadata_examples.php were highlighted as a reference.
Is there a reason nobody does it?
Thanks
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>display_callback is scheduled to be removed?
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>I could not activate v0.5.1 with the following error.
The PHP version 5.3.8 that I used.
Parse error: syntax error, unexpected T_CASE in /Library/WebServer/Documents/works/business-leader/wp-content/plugins/custom-metadata/custom_metadata.php on line 948
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>I’ve ran across two bugs in this plugin that I’ve fixed.
The first is related to showing the custom blocks on post/page edits. For some users, the blocks never appeared. It’s related to the context not being used properly…
function add_post_metadata_group() I modified the meta_box call to use the $group->context value, and not the hard-coded one. Same thing also in add_options_metadata_group().
Second is the tinymce editor was being initted twice on a page … found to be caused by the function admin_head() calling wp_tiny_mce(). Commenting this line fixed the problem.
Regards,
Mike
I love the plugin; works like a charm except one thing: no data displays in the dashboard. The columns appear as expected when display_columns = true, but no data. I have text, checkbox data, numerical data – no display. There are no other plugins and there is no custom call-back.
Any ideas?
]]>Hi again, can you tell I’m making good use of your plugin?
I am trying to filter the plugin_url() response in your plugin to fix an issue in my server related to symbolic links and the CSS file. The problem is that because you run plugin_url() in the root (non-hooked) context of your plugin I am unable to filter the value using the normal ‘plugin_url’ filter (because my plugin hasn’t had a chance to register my filter yet).
It seems that you foresaw this issue and added the ‘custom-metadata-manager-default-css’ filter to get around it. Am I right about that? It seems like you even tried to make your filter match the regular plugins_url one.
If so I think you should consider moving the define(CUSTOM_METADATA_MANAGER_URL) call instead. By running that in your admin_init hook instead of the core of the plugin you allow other plugins a chance to register plugin_url filters before the constant is determined, which is much easier than asking them to have a custom filter just for your plugin.
I tried it out and everything seems to still work fine with the define in the admin_init hook.
Thanks!
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>Hey man, noticed another behavior that is strange to me and probably confuses people if they see it: Any fields added to a group will show on all objects the group is on, even if the list of objects the field is added to are not the same.
I.e. If you add a group with $object_types=array(‘page’, ‘post’), then add fields to the group but only for ‘page’ then all those fields will still show on the post edit screen.
EXAMPLE
I added a general group named after my site/plugin that I wanted to use on both posts and pages, as a result I used this code:
x_add_metadata_group('gv_custom_metadata_posts', array('page', 'post'), array(
'label' => 'GV Custom Metadata',
'priority' => 'high',
));
I then added fields to the metabox, assigning them only to post or page objects:
`x_add_metadata_field(‘page-excerpt’, array( ‘page’), array(
‘group’ => ‘gv_custom_metadata_posts’,
‘label’ => ‘Optional Page Excerpt’,
‘field_type’ => ‘textarea’,
));
x_add_metadata_field(‘gv-extra-wide’, array( ‘post’), array(
‘group’ => ‘gv_custom_metadata_posts’,
‘label’ => ‘Full-width content (hide sidebar and fill space with content)’,
‘field_type’ => ‘checkbox’,
));`
The result I’d expect is that the group metabox details are the same on both edit screens, but that only the fields assigned to each specific screen would show.
What happened instead was that both fields showed in both edit screens. This effectively means that if a field is in a group, the group’s $object_types completely override those set in the field registration.
IMHO this is confusing and not really desirable behavior. I think the use-case of wanting one metabox with variable contents is a common one for plugin/theme devs and a lot of people might not notice that there were settings on one context that they had tried to not show there (which would in turn confuse users if the related theme feature wasn’t set up on the object in question).
Thanks for looking into this, hopefully it’s not too hard to manage. If you don’t think this behavior should change then I’d recommend goign through the documentation and mentioning it a couple of times so people know that they should never use a group on more than one object_type unless they want it to have the exact same fields.
]]>Hey man, I’m finally implementing this on my main sites. It seems that the code is ready to handle ‘textarea’ as a ‘field_type’, but the readme.txt docs, as well as the inline phpdoc blocks all fail to mention it (they say ‘text’ but not ‘textarea’). You should add mentions of textarea as people would probably like to use it instead of text and they can!
Thanks for the plugin ??
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>The Custom Metadata Manager does not activate when you are creating a new post, only when you edit an existing one. It seems this is because the $_pages_whitelist
array doesn’t contain post-new.php
, which is the $pagenow
value when creating a new post.
I tried this in my code, and it doesn’t seem to have bad side-effects. Is there any reason this was not included in the released plugin?
https://www.ads-software.com/extend/plugins/custom-metadata/
]]>I’ve been working with this plugin for several hours now, and it just doesn’t seem to be doing anything. It could be that it’s not compatible with the latest version of WP, but that seems unlikely since it was released so recently. I’ve installed and activated the plugin, and I know it’s running. Then I’ve dropped the example code in my functions.php file
<?php x_add_metadata_field( 'field-1', 'post' ); ?>
and I know that file is loading correctly, but the fields are not showing up in my add post page.
When trying to debug the plugin, I’ve noticed that it tends to hang up when verifying whether or not my objects (I’ve tried ‘post’ and ‘page’) are registered. If I try to bypass that test, I get errors with the array_key_exists function.
Any help would be greatly appreciated! Thanks!
]]>I’ve coded custom content types and meta boxes by scratch, and I cannot get this plugin to do ANYTHING, even the sample code produces nothing in my site.
Waste of time.
]]>