wordpress custom field to select from existing posts - wordpress

I'm building a WP site and at one specific page i want to have a custom field in wich the user can select from existing content to be linked there. (english is not my native lang :)
In my case:
I have a services page where the admin can add new services.
I have a doctors page where the admin can add new doctors.
I want to have the option to link one doctor to one specific service.
Can this be done?

As other said, Advanced Custom Field is the answer to your and most needs regarding the data hierarchy management in wordpress.
In addiction I suggest to you to read this good tutorial about the use of Types, another good plugin that does the same work of ACF.
Considere moreover that both plugins ask money if you want more functionalities.

Here is the plugin url : http://wordpress.org/extend/plugins/advanced-custom-fields/ that makes relationship between custom filed. It will you.

Related

Wordpress post view format for filter grid

I am a complete newb to wordpress. I am trying to help a friend out. She asked me to help her move her wordpress instance to another hosting provider.
I have done that for the most part. My issue is the original provider implemented a not-so-obvious way of an isotope filter on some UI elements.
Specifically the object is a company. Each company has a logo, the name of the company, a short description and a contact name / email.
These companies service states / areas and the idea behind the page is to select the state and only the companies for that state are visible.
From the brief searching I have done - there seems to be an overwhelming amount of plugins to support this.
I have tried creating a simple post with a featured image and adding in the text in the excerpt.
My problem is the links. I don't want the links to go back to the post - rather I want the links to go to a custom URL.
Is there a plugin that will allow me to define a custom post type (to include categories) and then filter on it similar to Isotope type of filtering?
There are many free plugins but if you are using the Elementor page builder. I am not advertising my product but as I saw your requirement matches a plugin that I am selling in the market.
The frontend filtering feature is not yet available to the released version but will be released soon. It basically allows you to build a custom grid as you like.
Is it something similar?
https://demo.geekygreenowl.com/elementor-387/
You have to create a custom post, there should be a custom field(custom URL) as well.
Or, You may create a WordPress query. https://developer.wordpress.org/reference/classes/wp_query/
also, coding will be required for filtering

Develop or Plugin suggestion for Wordpress site

I need to create a WP site which will have a single membership. Each member will have its own page where the posts added by that user will be displayed. I know Wordpress comes with the default author and posts, but it does allow only premium members to add posts and paid registration/profile. Shall I develop a custom one or there is any available plugin. I tried, but did not find any similar to my requirement.
Any suggestion and help will be much appreciated...thanks a lot.
There is a very flexible plugin that allows you to create/configure members stuff Ultimate Member.
Check How to customize member templates, Code Examples, and other documentation.

How to use custom fields globally in Wordpress?

I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method.
I have a WPMU setup with all new sites created from a default blog that includes multiple custom post type templates. When users create a new site they are redirected to their site admin dashboard.
Here comes my challenge, I want users to be able to enter information into form fields contained in metabox(es) on their admin dashboard (not post editor) that will be used on the various custom post type templates. For example, a user will need to enter their company name, address, logo, etc.
Depending on the temple, the information entered into the form fields will be used on the frontend of the site. For example, the company logo will be display where the custom field or shortcode is placed on the post template.
I'm having issues using custom fields for this because each custom field is specific to each post. In addition, I'm having issues rendering a form on the admin dashboard for this.
I'm also thinking that custom fields may not be the best way to accomplish my objective because they are usually post specific. I'm really asking for a variable that will be used globally and is static unless the user updates the form.
I'd appreciate any assistance on this.
The options API is what you will need for this:
http://codex.wordpress.org/Options_API
There's also some plugins and frameworks you can use to help such as:
https://wordpress.org/plugins/options-framework/
https://wordpress.org/plugins/redux-framework/

Wordpress or Drupal: Plugin for sub threads

I'm looking for a wordpress OR drupal plugin with which the users of my site can create a sub discussion to an article by themselves and invite other users to join. This subdiscussion should be invisible to not invited Users. Is there anything similar? Or could I do this some other way?
I didn't decide for wordpress or drupal by now, so which ever cms can do this will be it.
Thanks for your answers!
I don't know of such a module for Drupal but if you'll go for the custom module route here's some pointers to how it could be implemented:
Create a content type called Subarticle, enable comments and add a Node reference field to it. Allow your users to create nodes of that type.
For the widget of the node reference, use the Node Reference URL Widget module which will create a link on each Article, something like Create a Subarticle, automatically making the new subarticle point to the article.
For display, views could be used with a node argument on the node reference field.
For invites and visibility, check out Organic Groups. When a new subarticle is saved you'll have to programmatically create a new organic group, make the current user the owner and add the subarticle to that group. With an organic group he can then invite users.
You could use Vanilla, that can be easily integrated wtih Drupal or Wordpress (or anything). Check out this podcast to see how easy it is to plug into WP. There are plugins for Vanilla that provide the private thread functionality you are looking for.

Members only based plugin for Wordpress

Can anyone recommend me a good members-only plugin? I want to hide pages (and their tabs) if users aren't signed in.
So far I have found:
'Member Access' which doesn't hide the tabs
'wp-members' which wouldn't work with 2.8.4
'user access manager' which was too complex clunky to be useful.
There should be something basic out there for what I need, but no luck so far.
Justin Tadlock is a WordPress heavy (wrote the popular Hybrid theme framework), recently released a comprehensive user management plugin called Members, which among other things can turn your blog into a login-only venue:
Private Blog: Allows you to create a
private blog that can only be accessed
by users that are logged in (redirects
them to the login page).
But I get the impression that you're looking to keep some part available to the public users and other parts only for registered users.
You can also use this plugin to restrict certain areas of your blog, screenshot example here: based on role
Hiding the tabs from the public user is the challenging part. Themes typically aren't designed with private portions in mind; you'd have to hack it yourself or get someone to do it for you.
If are familiar with php and WP structure, you can add a few lines of code to a few template files to redirect users to login page if they are not signed-in. Let me know if you want to go that way. I can try to provide sample code. Are you using one of the basic themes?
I have a plugin called "LJ Custom Menu Links" that can do what you are asking. However as the name suggests they are custom links, so you would have to hand add the pages you want. But it does/and can only show a link when a user is logged on if that is what you want. Combined with "pagemash" plugin which will hide pages from the menu generated by WP itself leaving only the pages linked to by the LJ Custom Menu Links plugin.
However I was under the impression if you made a Page private then it wouldn't show up unless someone was logged in, or am I wrong on that one?
A good option is to use three difference plugins:
Member Access
Register Plus
AJAX Login Widget++
You can find my post on all these here:
http://sbhosting.com/wordpress-member-area/
Try CMS Members
I know it hide some pages for non-members.
A paid option is this. It's VERY good. I use it on several websites. Called Wishlist Memeber
For me s2member does the job. You don't have to use the paypal option, you can stick with free membership.

Resources