75 reputation
8
bio website
location
age
visits member for 3 years, 7 months
seen Apr 21 at 5:39

Jan
25
accepted How can I let users to access plugin functions based on roles?
Jan
24
comment How to link a word comprised of a custom field with another?
Here is what I see: <span class="link-field"><a href="http://google.com" target="_blank">google.com</a></span> when I use <?php the_field('field2_link'); ?>
Jan
24
comment How to link a word comprised of a custom field with another?
I have updated the question with output for each of my attempt.
Jan
24
revised How to link a word comprised of a custom field with another?
added 882 characters in body
Jan
24
revised How to link a word comprised of a custom field with another?
added 882 characters in body
Jan
24
awarded  Custodian
Jan
24
reviewed Approve suggested edit on How to link a word comprised of a custom field with another?
Jan
24
comment How to link a word comprised of a custom field with another?
The two fields working fine if I use them separately like this- <?php the_field('field2_link'); ?> and <?php the_field('field1_details'); ?>.
Jan
24
comment How to link a word comprised of a custom field with another?
The link field is created using a ACF [addon] (github.com/Jeradin/acf-website-field). The fields created using the addon works fine if I just publish it as <?php the_field('field2_link'); ?> and the other field <?php the_field('field1_details'); ?> separately.
Jan
24
revised How to link a word comprised of a custom field with another?
added 144 characters in body
Jan
24
comment How to link a word comprised of a custom field with another?
I have tried with out the if. But no change.
Jan
24
comment How to link a word comprised of a custom field with another?
I have already tried the_field. But the link is broken. <?php the_field('field_name'); ?> is used to publish the field as it is. I don't know how to make it work to link one field with the other field with Website URL.
Jan
24
comment How to link a word comprised of a custom field with another?
if( function_exists('the_field') ) checks if the ACF function exists.
Jan
24
asked How to link a word comprised of a custom field with another?
Jan
15
comment How to stop displaying the Id without losing the functionality
Issue resolved. Thanks!
Jan
15
accepted How to stop displaying the Id without losing the functionality
Jan
15
asked How to stop displaying the Id without losing the functionality
Jan
14
comment How can I let users to access plugin functions based on roles?
Here is the final code- pastebin.com/GEUCebBi. I should say the problem is resolved. I request you to check if what I used it fine and there is nothing wrong in my code(my knowledge in php is limited and don't know if what I used is correct).
Jan
14
comment How can I let users to access plugin functions based on roles?
@paul-fiesler, I got it. I am happy now. Here is what I used. I used- get_post(filter_input(INPUT_POST, 'post_id'))->post_author == get_current_user_id() instead of $post_author_ID == $user_ID.
Dec
28
comment Change the Author Slug from Username to Nickname
Also if there is a space in between the name, the URL will not work. It happens with the random usernames created with this code. When I tried the code on my end, it generates the random usernames like New user 654937 and the author URL looks like site.com/author/Newuser654937/. That URL will not work until we again change the profile name and remove the spaces. Is there Can you suggest a solution with it?