Created tabs to be selected in "Show in What Locations?"
This topic contains 13 replies, has 5 voices, and was last updated by Tony Diaz 8 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 12, 2016 at 11:36 am #323593
I got this … easy peasy.
https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/
But how do I custom fields to show on that tab, to be able to select that tab from the custom field editor.
December 12, 2016 at 4:52 pm #323747Hi Tony,
That’s exactly how you do that. If it’s not working for you, could you please send us a login credential so that we could check on it? Remember to set as private reply.
Thanks!
December 12, 2016 at 9:21 pm #323858Hello
I think I need the same feature. I’ve created a new tab using the code from the blog (https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/) but I don’t know how to insert my custom fields into that tab.
For exemple, I want a tab called ‘Prices’ and put the custom fields Price1, Price2 and Price3 into this tab.
Thanks
December 12, 2016 at 11:14 pm #323931This reply has been marked as private.December 13, 2016 at 5:37 am #324007That article is only in case you want to add data from ANOTHER plugin etc, NOT if you want to add GD custom fields.
See https://wpgeodirectory.com/docs/core-place-settings/#fieldset
So create a fieldset and custom fields, and drag and drop the custom fields under the fieldset in the order you want to display them.
December 13, 2016 at 7:35 am #324014Are we saying then, that it is -not- possible to add GD custom fields to a user defined tab, selectable from a listing page?
If it’s not possible to put fields in a user defined tab, just static text then I see that ability as pretty limited.
That is what I asked and where my screenshot is from. I didn’t say anything about fieldsets which are just banners for sections of custom fields.
December 13, 2016 at 10:04 am #324122Please review the link I posted: https://wpgeodirectory.com/docs/core-place-settings/#fieldset
If you select Details page own tab at the Show in what locations? selections, then a new tab will be created for the custom fields ordered under this fieldset, and which also have Details page own tab selected.
See images
December 13, 2016 at 10:28 am #324129So I need to use the Fieldset to group tab contents and can not display that custom field in more than one user created tab?
Fieldset A
Item 9
Item D
Item CFieldset B
Item 8
Item 7
Item 1I want Item 8 and Item D in a tab called “Details”, but both of them are in other fieldsets that may or may not have a tab already.
I want to show all the fields on “More Info” and select ones separately, in a summary form. A lessor detailed page that has something from more than one fieldset. They can select a summary view or a detailed view.
December 13, 2016 at 10:41 am #324133If you want a field in “more info” and a “fieldset”, select “More info tab” and “Details page own tab:” in “Show in what locations”.
See https://wpgeodirectory.com/docs/core-place-settings/#showA custom field cannot be in two custom fieldsets, but can be in “more info” and one custom field set.
December 13, 2016 at 11:00 am #324165…and as best I can tell, there are shortcodes associated with custom fields?
(Therefore taking advantage of shortcodes and tabs)
December 13, 2016 at 12:40 pm #324218Custom fields are not available as shortcodes.
Can you explain what you mean with “shortcodes associated with custom fields”?Here are most of the shortcodes available: https://wpgeodirectory.com/docs/?post_type=post&s=shortcodes&cat=0
December 13, 2016 at 4:25 pm #324287Hi,
if you add the new tab via php, you need to add custom fields via PHP too.
You can display each custom field like this:
global $post; $custom_field_value1 = $post -> geodir_yourcustomfield; echo $custom_field_value1;
If you search in the forum you’ll find several examples.
Thanks
December 13, 2016 at 8:58 pm #324422Hi Paolo
This code is perfect for me!!
Thanks
December 13, 2016 at 10:23 pm #324443Great, that does the job. Just what I was looking for.
No clue why php just totally escaped my mind, even though I used that for the tab itself.
Thanks!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket