I have created new fields for a CCK content type. They were showing up before just fine. Now nothing. The only thing I did differently was delete some fields before adding the new ones.
I can see the columns in the content type table. They are just not showing up in the Create Content form. Any help on this would be greatly appreciated.
I Solved it! Stinkin permissions got me again!
With drupal it is necessary to give permission for these fields to be seen by even someone with admin role. I made this adjustment at:
/admin/user/permissions
I hope i save someone some time with that. : )
You can disable the Content Permissions if you want. Even though it can be a pain, you will appreciate the granular permissions when you need it.
Related
I have been working with wp for a while now but just ran into a bug, that I can not fix with the information found in the internet.
I was editing a acf field. When I was finished writing into one of the fields, I mistakenly pressed enter. The page started reloading and all fields were gone. When going to the frontend, everything is displayed properly.
I tried to reactivate my ACF fields via the screen options what did not work. I inserted some code lines into my functions.php. or into the input.css because I thought maybe the right checkbox for the ACF fields to be displayed was missing. Nothing helped. Is there any other way to fix this issue.
thx in advance
greetings
I just come through this problem : for one of my field group, the fields box just disappeared at some point and I had no way no retrieve it thanks to the Wordpress Admin interface.
I don't know the reason why, but it appears that in my case, ACF registered some "unwanted" user meta in my database. (how is the question)
If you look inside your DB at the usermeta table content you will probably find some ACF entries like : metaboxhidden_acf-field-group or closedpostboxes_acf-field-group and maybe others...
The one causing trouble for me was meta-box-order_acf-field-group : I simply deleted the entry (but you can try editing it to remove the reference of your "lost" box) and the problem was solved.
Maybe too late to help you, but hope it can still help someone !
##EDIT##
Seems I may have a clue about how the box disappeared
Steps to reproduce :
Create a field group and associate it with whatever post type you have
Go create a whatever post (note : the Gutenberg editor is active on this edit page)
You should find your fields group at the bottom of the page
Try to move the group meta box above the Gutenberg editor (without success because it seems not possible)
Save your post
Come back to the edit page of the field group and refresh it
Tadaaa ! the fields group box is not available anymore
Go to your database, the usermeata table, you will find the entry causing the trouble again : meta-box-order_acf-field-group = a:3:{s:4:"side";s:32:"submitdiv,acf-field-group-fields";s:6:"normal";s:57:"acf-field-group-locations,acf-field-group-options,slugdiv";s:8:"advanced";s:0:"";}
I solved the problem by adding a custom script for the ACF with delete class closed on #acf-field-group-fields:
document.addEventListener("DOMContentLoaded", function(event) {
document.querySelector('#acf-field-group-fields').classList.remove('closed');
});
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.
I'm working on some drupal installation and googled the whole day, but I can't figure out an answer to the following question:
How is it possible to alter the admin/content page in a way that specific roles are only able to see or filter out limited content types?
Please notice that I don't want to restrict node access in general, I just want to make this page less confusing for editors with different roles and tasks.
I know there is the administration views module and there I can set filter fields in the way I want. The problem with this is that I'm not able to enter the views access restrictions and so all I can do is limit the view's content types for all roles.
Can somebody give me a hint how to solve this?
Thank you very much and sorry for bad english.
One way would be to make a custom module.
In this module you would create a page with hook_menu().
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7
Then in the page callback function that you create you load global $user and switch between the $user->roles, out putting different HTML lists of links depending on their role. If you want something a little more dynamic you can always load the various content types with node_type_get_types().
Then go into structure -> menus -> navigation and disable the default link, replacing it with the new page you created.
If you aren't 100% clear on how to do a couple of these things comment here and I will update my answer.
I want my users to be able to mark posts as favorite. I tried the wp-favorite-posts plugin, but it doesn't work. I mark posts as favorites and after refreshing the page it's all gone. Furthermore, if I put {{wp-favorite-posts}} to a page, it just shows the text.
So I want to create my own solution, but don't really know how. I have never edited the WP database, but I have plenty of PHP mySQL experience.
Can anyone please point me in the right direction ?
You can use post_meta. You can store the "favourite" aspect as a custom field attached to each post. You don't need to manually edit the database (i.e. via mySQL).
When you want to show the favourited posts, run a custom query that only shows posts with the specific custom field that you've specified.
I'm developing a custom theme for Drupal 7. My problem is I don't know how to make a page that shows information about the author, and below the info, a list of the author's articles. (For ex. if I go to user/ i want to see the profile of the user with the given id, and his/her latest posts).
So what would be the best solution for this?
I've tried with creating user-profile.tpl, it's ok, but I dont' know how the get the nodes, and I don't really want to make sql query-s, because I think there is a prettier method for this.
I've tried with Views, too, but I'm new to Drupal and the most of the tutorials/explanations were for drupal 6 (if it's simple with view, please write me a small guide for it).
Thanks!
It'd be better to create a view that takes the uid as an argument.