Vlad, thanks. I’m happy to do it myself, do you have a link to documentation which might help me work through it on my own?
@Bettina, I’m sorry but I’m still having this issue. To be more clear.
Post ID 36027 has an associated author of Web Webster (user ID 16).
My tagDiv module attempts to retrieve the field pen_name for this post, and if it doesn’t find one if falls back to using the WordPress function get_the_author() which returns Gaby Gaass (user ID 5) because she is the person who edited the cloud template we’re using.
$pen_name = get_post_meta($post_id, 'pen_name', true);
$pen_name = $pen_name ? $pen_name : get_the_author();
I could use your built-in function $tdb_state_single->get_wp_query(). But since it returns the post_author ID and not the author name, I’d have to perform an additional database query to retrieve that. I would be lovely if that was included.
After looking through other modules in your plugin I discovered you have a global to handle this:
$single_post_details = $tdb_state_single->get_wp_query();
-
This reply was modified 5 years by
technologyadvicecom.
Thank you Anamaria,
I’ve already been able to hardcode a shortcode in a tagDiv composer module and have it show up on the page. But by hardcoding this module, it will be the same for every page using that template.
Can you indicate whether it’s possible to load content from the postmeta table from within a tagDiv composer build template?
Regards
Andy
Oh, that’s disappointing given how flexible and editable the remainder of the theme is. But thanks for letting me know.
@Vlad, I’m fine to try the CSS addition, but that won’t affect performance as the image will still be requested. We just won’t be showing it. I’d prefer to understand why I can’t control the way this search overlay works like I can with all the other parts of the theme.
Note that we’re going to be re-launching a number of sites over the next month and they’ll all be using the Newspaper theme. Thus far, every site has the same issue, even though they’re using different theme settings and cloud templates.
Sure thing Vlad, the site is https://www.esecurityplanet.com/
-
This reply was modified 5 years by
technologyadvicecom.
I’m having the exact same issue. But in my case my wp-content folder is named correctly. This is the error I’m getting:
2020/09/29 13:26:48 [error] 2883#2883: *35537 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/html/efs/wordpress/wp-content/Newspaper/tagdiv-deploy-mode.php): failed to open stream: No such file or directory in /var/www/html/efs/wordpress/wp-content/plugins/td-composer/mobile/functions.php on line 11PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/html/efs/wordpress/wp-content/Newspaper/tagdiv-deploy-mode.php' (include_path='.:/usr/share/php') in /var/www/html/efs/wordpress/wp-content/plugins/td-composer/mobile/functions.php on line 11" while reading response header from upstream, client: 172.16.0.43, server: <strong>WEBSITE URL REMOVED</strong>, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "<strong>WEBSITE URL REMOVED</strong>"
I sent an email to tagDiv support.
-
This reply was modified 5 years by
technologyadvicecom.
FWIW I just added a 3rd site to our multisite instance, activated the theme first and I’m still getting the same thing. The request is also being made to http instead of https.
I updated the site settings for sites two and three and it’s working now.
Settings > General
Make sure the URL for your site is https. I don’t know if that will help anyone else, but it fixed it for me.
-
This reply was modified 5 years by
technologyadvicecom.
We’re having this issue as well, but only on one of our sites. We’re running WordPress multisite and one of the sites works just fine, whereas one of the new sites is having issues.
I suspect it’s because one of my coworkers attempted to access the Cloud Library before I had authenticated the theme.
In the site that works I see a POST request to:
https://<site-number-one>/wp-json/td-cloud-library/td_cloud_proxy?uuid=<some-uuid>
It returns a 200 along with data.
In the site that does NOT work I see a POST request to:
http://<site-number-two>/wp-json/td-cloud-library/td_cloud_proxy?uuid=<some-uuid>
It returns a 301 along with data.
It seems like, for some reason, the protocol on the second request is being made via http instead of https.