XYDAC
Forum Replies Created
-
Can you update to latest version of plugin and let me know if it removed the extra javascript added
Regards,
-Xydacyes there is all you need to do is select export from ultimate post type manager admin panel for the custom post type you want to export.
The export option is available when you mouse over an existing custom post type.
The code for custom field and post type is shown in the text area below it. Then copy the data and paste it to same place on server side. then press the import button to import the custom field and custom post type.
Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Bug – Messes up global loopYou can also set the public variable for a post type to false.
Regards,
-XydacHey storynory,
I know a dump of jquery gets added to header, and thats because of new gallery fieldtype which you might try using, as it’s kind of cool; and if you don’t wanna use it then hang on till next release i’ll make some changes so it doesn’t gets added to users who doesn’t use the field types.
Sorry for loading up your site for extra dump of javascript.
P.S. i LIKED YOU NICk.:)
Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Bug – Messes up global loopHey,
This plugin adds all other post types to homepage and feeds, didn’t update that function , in recent release.
You can change the function as you want, and i’ll add gui for doing this in next release.Either comment line 673 to remove all post types. where line 673 is
add_filter( 'pre_get_posts', 'xydac_posts_home' );or you can also make changes in the xydac_posts_home function in line 273 of
index.phpfile.Do let me know.
Regards,
-XydacHey,
I’ll have to look into it, will notify ya when i found it ,or i’ll add this feature to next release.Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Function to add/update custom fieldHey,
1. yes it’s possible that key is not text, it’s different for each field type. look for $name=” in fieldtype/class-fieldtype.php files.
2.
get_post_meta()should work as follow :global $post; $val = get_post_meta($post->ID, {field_name}, true); echo $val[{fieldtype}];for example if field type = text, fieldname = username then
global $post; $val = get_post_meta($post->ID, 'username', true); echo $val['text'];Hope this solves your problem,
BTW sorry for delay in response.Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Function to add/update custom fieldupdate_post_meta(post->ID,$field_name,array('text'=>$field_value));this should work, else i would check it out later when i return. I am traveling right now.
Regards,
-XydacIt’s not a bug, actually if you change the name of post type, it’s name has to changed across the complete table, so the plugin doesn’t provide the feature of changing the name of any post type.
Moreover why would you want to change the name of any post type, you can actually change the labels to whatever you want, also if you want you can change the permalink and replace it with whatever you want.Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Function to add/update custom fieldHey Nir,
As you have seen i use a different format to store data, The format is as below:
meta_name :{field_name}
meta value :array({field_type} => {field_value})
If you wanna coin a function yourself then you can, Else i’ll write it up sometimes later..:)Regards,
-XydacHey josefdunne ,
First off, You are getting a lot angry on me mate for the problem caused to you.
You shouldn’t be getting so angry coz in the recent updates I have made huge changes worked day and night and delivering such a plugin for free.The problem to me isn’t that my plugin caused a lot of problem for you, the problem is that u don’t know how to solve it, and shouting on me.I’ll tell you one this my dear friend, the technology you are working with is PHP and it’s on WordPress. So chill of dude, coz if you don’t like any function the way i do just make a damn change and you are done.
Now moving to your problem,
You used
get_post_meta($post->ID, 'name', true)to access the custom values, so all you need to do is re-define the functionget_post_metain a file for your use. In that function first you should check for an arrayed value so you don’t bug up any other kind of custom field. If the value is array then the format i use for my custom fields is as below:
meta_name :{field_name}
meta value :array({field_type} => {field_value})it’s as simple as that.
I would have actually written the function for you, but i would leave it for you to fight with. It’s your decision to use my plugin or not, even on top of my plugin file says, the software come without warranty. so my dear friend..Enjoy…!!Really glad that u gave the code you used to call custom value, else i would have been annoyed thinking that it was related to my plug in.
You will need to use my shortcode to get the values from the database, because from this upgrade I am storing everything in an array. All you need to do is replace these calls with the shortcodes. you can add the html script to post type’s template on post type edit page.
Or you can change the code of your template file and use the function do_shortcode(); for calling off the shortcode.Hope you’ll soon solve you problem. And from next time onwards do provide full information before blaming anyone.:)
Regards,
-XydacForum: Plugins
In reply to: [Ultimate Post Type Manager] Faced some error with this pluginWell i tested it with a gallery on my page so just missed id, Sorry for that Will queue it in next release.
Thanks,
-XydacAlso update the plugin to 1.6.5
Can you just Deactivate and Reactivate the Plugin.
Moreover can you please provide the field type associated with the problem.