How can I access this from function.php as
get_post_meta( $post->ID, 'td_source_url', TRUE );
this won’t work?
-
This reply was modified 6 years by
RobinKiera.
I think you may have misunderstood me,
There is a filter post_link in wordpress and I’m using that to link.
I just need to get value from the theme’s custom field Source URL
Normally get_post_meta( $post->ID, 'td_source_url', TRUE ); works but not with your theme’s custom field. Can you find out how can I get value of SOURCE URL from your theme’s custom field?
Thanks
What I’m trying to achieve is to use theme’s custom field or meta box named source URL to replace post link so that it can be open as an external post (redirects to other’s website without opening our post) i.e to change its post_link using that hook.
so all I need is to get the value of td_source_url and that code will work.
1. https://nimb.ws/YzXpFn
Look like not, I sent it from different email address just now. Hope that’s acceptable.
Thanks
Hi,
Sorry for the late reply.
I did send the details at contact@tagdiv.com, any news?
Thanks
Thanks,
This problem is still there:
3. Wp Editor error, https://nimb.ws/rx73wR can’t save nor can I switch. This problem was there before update.
Are you guys allowed to get site access from us so you can have closer look?
Thanks
Hi,
Thank you for your reply.
1. Thank you, the code works.
2. Version 9.7.3 and Version 9.8’s child theme file (Function.php and Style.css) are the same, though I replaced it but it didn’t work. I also reuploaded td-composer plugin from downloaded zip but that didn’t work either.
3. I did that too, Deactivate all plugins and active only the newspaper theme and composer plugins, reinstalled wordpress that didn’t work too. I hard refreshed it, change browser and it didn’t work either. here is the error log
1.wp-content/plugins/td-composer/includes/wpeditor.php
Uncaught ReferenceError: ajaxurl is not defined
at HTMLDocument.<anonymous> (wpeditor.php?wp_path=/home/digit760/public_html/:411)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
2. Uncaught TypeError: Cannot read property 'activeEditor' of undefined
at window.loadIframe (wpeditor.php?wp_path=/home/digit760/public_html/:175)
at onload (wpeditor.php?wp_path=/home/digit760/public_html/:278)
window.loadIframe @ wpeditor.php?wp_path=/home/digit760/public_html/:175
onload @ wpeditor.php?wp_path=/home/digit760/public_html/:278
the same file as above.
3. If I use a child theme, the following error will be added to console log.
.....wp-content/themes/Newspaper-child/font-newspaper.css?ver=9.8 net::ERR_ABORTED 404 (Not Found)
Hi,
Thank you for your reply. But this is not what I meant.
But I found a workaround.
Thanks