• Resolved egymido

    (@egymido)


    Hi, I’m using Snax front end plugin to create (link) format post.

    As you know the (link) format putting the URL in the first line in the content field.

    My question is it possible to get this URL and display it in a separate field with Frontier? and this field will be editable which means that when user change the url in this field it will be saved in the post meta data as normal.

    like this image :
    2020-01-13-130354

    I hope my question is clear ??

    thank you for your time

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author finnj

    (@finnj)

    You should be able to do this by using a custom field and php code in functions.php – Example of code here:

    https://wpfrontier.com/frontier-post-custom-fields/

    Additional custom code examples are available on wpfrontier.com

    Be aware that you will be on your own here, I do dot help with or support custom code, example is for your reference only

    Thanks

    Thread Starter egymido

    (@egymido)

    Thank you for your fast support )

    ok I did a custom field now I want to get the first url in the content to be written automatically in the new field created.

    I know there is a function called :

    function get_link_url() {
        $content = get_the_content();
        $has_url = get_url_in_content( $content );
     
        return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
    }  

    can I use this function with this field? and how?

    2020-01-13-142018

    Thank you for your time and help

    Thread Starter egymido

    (@egymido)

    Hi, Please if this will be a paid service just tell me how much dose will cost? thank you

    Plugin Author finnj

    (@finnj)

    No, all my plugins are free, and I do not offer paid services

    Tje plugin offer some possibilities to extend with custom code, but you will need to do it yourself or get someone else to do it

    Sorry

    Thread Starter egymido

    (@egymido)

    Thank you for your answers, would you please nominate someone you know he can do this job for me as a paid work?

    thank you for your time

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to get the URL in(link) format post to a separate & editable field?’ is closed to new replies.