ADD CUSTOM FIELDS WITH LINK IN ADD LISTING

This topic contains 4 replies, has 3 voices, and was last updated by  Richard Aronson 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #363250

    Richard Aronson
    Free User
    Post count: 50

    On a site I am working on, seniorian.com, I would like to add a custom field to the Add Listing page that links out to another page. You can see the current Add Listing page HERE.

    What I want to do is add a custom field right below the Listing description that will allow my users to click a link and go to a page where they can grab some copy that they can then paste into their description, if they need to.

    I’ve attached an edited screenshot of what I would like this to look like.

    #363418

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that can’t be considered a custom field because you are adding no field, but just text.

    There is an hook “geodir_after_description_field”, which could be used to insert anything you want.

    example:

    
    
    add_action("geodir_after_description_field","_my_add_listing_desc_help_info");
    function _my_add_listing_desc_help_info(){
    	?>
    	<div id="geodir_post_title_row" class="required_field geodir_form_row clearfix gd-fieldset-details">
    		<label>Description Help </label>
    		If you need help <a href="#" target="_blank">click here</a>
    	</div>
    <?php
    }

    Please add this via code snippets plugin. https://wordpress.org/plugins/code-snippets/

    Thanks

    #363428

    Richard Aronson
    Free User
    Post count: 50

    Thank you Paolo. Can you give me the link to where I can see all the hooks? I would also like to suggest that there be a way to easily add this kind of content to the Add Listing form.

    #363430

    Kor
    Moderator
    Post count: 16516

    Hi Richard,

    You can find it in this link https://wpgeodirectory.com/codex/codex_project/geodirectory/

    Thanks!

    #363436

    Richard Aronson
    Free User
    Post count: 50

    Thank you very much.

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount