- This topic has 11 replies, 4 voices, and was last updated 3 years, 2 months ago by
Fernando.
-
AuthorPosts
-
January 3, 2023 at 3:10 am #2481702
Chetan Patil
Hi,
I am creating an author Profile for the website. I am able to get Facebook field in the social media links. But I am not able to pull Email and twitter links. (It is pulling wrong records)
Backend –> https://prnt.sc/Y9T9jBNrA47y
Frontend –> https://prnt.sc/JTuEO-6remL9Please check the url: https://fiverr.startupwebsite.net/best-websites-to-stream-ufc-fights-for-free/
I am using rankmath SEO plugin.
Please let me know what meta field values to put for Email and twitter links.
Regards
January 3, 2023 at 6:33 am #2482021David
StaffCustomer SupportHi there,
the email is core wp user meta field, and you can use
user_emailas your Author Meta field name.
The Twitter field though is not a core field, i assume it comes from rankmath, can you ask there support for the meta field nameJanuary 3, 2023 at 8:11 am #2482316Chetan Patil
Hi,
Thank you for your response.
I have added the same field name. But I am not getting the output as expected. It displays the part which is after @ and not the complete email. Please fix the email field. I will manage twitter.
I have attached a screenshot (https://prnt.sc/cDEMvlbnIrXo) of the settings what I have done.
I have also created the credentials for you on the website.
Looking forward for your response.
Regards
January 3, 2023 at 9:33 am #2482446David
StaffCustomer SupportThe dynamic data in GB/GP simply retrieves the value within the specified meta field using core WP functions.
It doesn’t interfere with those values in anyway, such as trimming the text of swapping the value.So if you’re getting a different result then there is some other plugin/function that is interfering with it.
You can test this by temporarily disabling other plugins / custom functions.January 3, 2023 at 9:53 am #2482482Chetan Patil
Hi,
Thank you for your response. I disabled all plugins except GB and GPP. (https://pasteboard.co/EdJOelvsU3CT.png)
Still result is the same.There is no child theme and no custom functions.
Please check and let me know.Regards
January 3, 2023 at 11:56 am #2482585Ying
StaffCustomer SupportFor email, try using GB’s dynamic data option, you should be able to choose
emailas the link type:
https://www.screencast.com/t/SwNgXYAkd52ZJanuary 9, 2023 at 12:16 am #2488485Chetan Patil
I created using JetEngine and Linked. Thank you,
January 9, 2023 at 3:03 pm #2489467Ying
StaffCustomer SupportYou are welcome 🙂
January 10, 2023 at 12:49 am #2489728Chetan Patil
Hi,
I am using yoast seo plugin and i am able to pull the email and facebook field in the author profile template.
But when I am trying to get the twitter url it is showing only username with @. (https://prnt.sc/ouAE2ZuBABZA)Is there any way by which we can replace this “@” with “https://twitter.com” ?
Here is the link on which I am working on: http://jes.15.206.175.162.nip.io/2022/12/28/hello-world/
Regards
January 10, 2023 at 1:26 am #2489765Fernando Customer Support
Hi Chetan,
There is a way. To do so, add
cu-headline-replaceto the classist of the Headline Block for the Twitter URL.Adding Custom Classes: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/
Then, add this snippet:
add_filter( 'render_block', function( $block_content, $block ) { if ( !is_admin() && ! empty( $block['attrs']['className'] ) && strpos( $block['attrs']['className'], 'cu-headline-replace' ) !== false ) { $myreplace = '@'; $myinsert = 'ADD WHAT YOU WANT TO REPLACE HERE'; $block_content = str_replace( $myreplace, $myinsert , $block_content ); } return $block_content; }, 10, 2 );Insert the text you which to replace
@with as specified in the code.Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
January 10, 2023 at 2:38 am #2489834Chetan Patil
Hey Fernando,
This is a great solution.
Thank you.January 10, 2023 at 5:00 pm #2490764Fernando Customer Support
You’re welcome, Chetan!
-
AuthorPosts
- You must be logged in to reply to this topic.