CMB Metabox and custom fields - wordpress

Sorry, I hope this is simple, but does Web Dev Studios Custom Metabox feature (https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress) need to save the data to the custom fields?
Basically I have it installed and it works but none of the data entered is appearing in the custom fields box like on another site I have, is this going to cause an issue?
Thanks,

sorry I dont have experience with that one. Use Advanced Custom Fields plugin. It'll be lot easier for you. you can even include it to your theme.

Nope, CMB Automatically save the data and retrieve. you may made any mistake, please switch on wp-debug (wp-config.php) and see if you can see any error.
Advance custom field is an alternate solution which has Graphical User Interface. you can also use it.

Related

Custom Post Type links not working

I'm wanting to make an employee page populated from a custom post type called "Employees". It lists http://www.domain.com/employees/joe/ as the permalink but the the actual page shows up as unavailable. Am I missing something on the taxonomy side?
Thanks in advance!
Answering it because I just figured it out, but after quite a bit of googling, nothing came up, so hopefully this helps somebody.
Reset the permalinks!
For some reason, if you create a custom post type after you initially set your permalink structure, it needs to be reset. Go to your settings/permalinks, set them to default, save, and then set them back how you want, save, and you're good to go.
The permalink structure needs resetting because this regenerates the rewrite rules within wordpress, allowing the different URL segment structures to be properly recognised and processed.
Wordpress rewriting works very well, but getting around it for custom post types, custom taxonomies etc. has added an extra set of needs to the system, which are slowly being improved. The custom rewrite system was added, and it's continued development is gradually making it easier to tackle issues like this.
In many cases, a custom taxonomy is the easiest way to go.

Advanced Custom Fields not saving at all now

I downloaded and installed Advanced Custom Fields 4.1.6 the other day and I used it a few times for some time and it worked perfectly, but for some reason now none of my custom fields seem to be saving and I'm not getting any errors or anything. I don't think that I have done anything at all that could have possibly broken this.
Has this happened to anyone else? And what could possibly be the issue?
I think you might have to take a look at export function the plugin provides. Select a field group you created and hit export. It'll generate some code which is pretty good commented with tips and advice. There might be some information there for good use for 'ya.
Example by the plugin developer:
Include in theme
The Advanced Custom Fields plugin can be included within a theme. To do so, move the ACF plugin inside your theme and add the following code to your functions.php file:
include_once('advanced-custom-fields/acf.php');
To remove all visual interfaces from the ACF plugin, you can use a constant to enable lite mode. Add the following code to your functions.php file before the include_once code:
define( 'ACF_LITE', true );
Hope it helps.
/Paul
Since my rep isn't high enough to reply to #Kortschot's response, I'll comment here.
I got this error while testing a new theme. It appears the theme has ACF bundled into the theme, which triggers the "Cannot redeclare acf_filter_post_id()" error. For obvious reasons (you can't run two instances of the plugin in the same install). #Kortschot's reference to including ACF in a theme helped solve my problem.
Now I have to figure out how to access ACF if I want to customize fields on pages/posts...
I'm gonna go ahead and reply to this old question in hopes that it helps someone out. I have been having this problem where my fields would not update on my custom posts. I usually have multiple tabs open to make navigation easier in the backend of WP. It turns out that when I closed all other tabs except the current one I'm editing, the fields update every time!
I have same problem with Advanced custom fields plugin , i resolve my issue by adding one line code in advanced-custom-fields/core/controllers/post.php
add_action('pre_post_update', array($this, 'save_post'));
after
add_action('save_post',array($this, 'save_post'), 10, 1);
line number 33, 34.
I had the same problem and fixed it by creating unique field names.

wp email publishing with custom content type?

having researched wp forums and only found people asking this question without any answers, I resort to the source of all truth (stack overflow).
I use wordpress custom post types (Custom Post Type UI plugin) and find it very handy.
Now, I want to be able to email-publish some content via WPs built-in email publishing system, but by default that is set up to only publish as regular posts.
I am aware that I can choose categories for the emailed content, but I would very much like to keep all the pages and content of my news (=blogposts) feeds the way they are, being able to put the email-published content into a content type of its own would really help me out.
So I wonder if anyone has done that, and how you would go about it. Thanks for any input.
Not sure if this helps people looking for a solution, but I managed to do it like this...
When a post is submitted for publish by WordPress default email2post, there is an action hook named 'publish_phone' running, so you can get the post there and change its type like this:
add_action('publish_phone','custom_type_by_mail');
function custom_type_by_mail($post_id){
$p = get_post($post_id,'ARRAY_A');
$p['post_type'] = "my-custom-type";
wp_update_post($p);
}
I resorted to converting it into a post category instead of its own content type. I know not whether there be any other solution =)

I want to create a Visual Recipe site on WordPress, any suggestions or tips on how i can do it?

I would like to create a visual recipe site, which lists how to make a dish in step by step through pictures.. Is it possible to create a custom page template where I can the following fields.
1.Dishname(title)
2.Introduction(Brief info)
3.Ingredients
4.upload photo input..
followed by add more pic
Is it possible in Wordpress, you have any effective ideas? please share :)
sure it's possible. I recommend you to create a new custom post type 'recipe' And add custom fields as you please. This article should definitely get you started: http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/

How to add one more editor for pages /post in wordpress

Hello Friends I want to add one more editor for wordpress pages/post .Is there is any plugin or any thing .Please let me know if any one having any idea about this.I shall be very thank ful to you
Do you mean you want to use a different editor for posts/pages than the built in one? I haven't tried this one but it looks good and I've been meaning to try it:
http://www.deanlee.cn/wordpress/fckeditor-for-wordpress-plugin/
If you are looking for multiple VISUAL/HTML editors (to control different parts of your post/page), you can either use custom fields or a plugin called PODS CMS.
If you are using custom fields, read:
codex.wordpress.org/Custom_Fields
A very popular plugin that works with custom fields is FLUTTER. I haven't used it myself, but I have used other plugins and I would probably go with Flutter because of what I have heard about it.
If you use PODS CMS, be aware that it doesn't work with plugins that require custom fields (for example, many feature slider plugins) but it's a great way to have multiple text fields on the same page. It's great for very customized content.
PODS CMS does require some php knowledge but the documentation online is very good:
mondaybynoon.com/2010/01/04/introduction-to-pods-cms-wordpress/
Personally, if I have more than one custom field per post/page, I would go with PODS, but that is just my preference.
I got the solution of above question.
http://wordpress.org/extend/plugins/multiple-content-blocks/
Using this you can easily add one more editor for page or posts
Thanks

Resources