=> Please give examples about how to use them (functions.php) to modify the Author display. Until now we always had to patch “meta.php” to bring in the images of our Authors which was overwritten in every update. This could help solve this problem.
Thanks!
Sven
function conditional_link() {
global $post, $product;
$categ = $product->get_categories();
if ( $categ = "Stampanti 3D") {
$z = 'PREVENTIVO';
echo '<div><a href="https://www.mario.it"><button type="button" class="btn" id="single-quote">'. $z; '</button></a></div>';
} else {
echo '<div><a href="https://www.luigi.it"><button type="button" class="btn" id="single-quote">'. $z; '</button></a></div>';
}
}
add_action( 'woocommerce_product_meta_end', 'conditional_link', 15 );
but it doesn’t works. Can anyone help me? Please
thanks in advance
I have located the meta template file; /plugins/visual-portfolio/templates/items-list/items-style/fly/meta.php and made the code changes i require to the meta.php file.
I have uploaded the edited meta.php file to my-theme/visual-portfolio however the changes do not seem to take effect.
Could you please advise how I can apply chnages to the meta.php file. TIA
]]>Fatal error: Uncaught Error: Call to undefined function get_user_by() in /home/lyncmedia/public_html/wp-includes/meta.php:1308 Stack trace: #0 /home/lyncmedia/public_html/wp-includes/meta.php(162): get_object_subtype('user', 2) #1 /home/lyncmedia/public_html/wp-includes/user.php(825): update_metadata('user', 2, 'kdxgs_capabilit...', Array, '') #2 /home/lyncmedia/public_html/wp-includes/class-wp-user.php(659): update_user_meta(2, 'kdxgs_capabilit...', Array) #3 /home/lyncmedia/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/setup/sitepress-schema.php(438): WP_User->add_cap('wpml_manage_tra...') #4 /home/lyncmedia/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(97): icl_enable_capabilities() #5 /home/lyncmedia/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php(149): SitePress->__construct() #6 /home/lyncmedia/public_html/wp-settings.php(305): include_once('/home/lyncmedia...') #7 /home/lyncmedia/public_html/wp-config.php(89): require_once('/home/lyncmedia...') in /home/lyncmedia/public_html/wp-includes/meta.php on line 1308
the front end is all F ed up too
]]>all is fine, it’s a notice but you have to know it:
PHP Notice: Trying to get property of non-object in /xyz/wp-content/plugins/blog2social/includes/Meta.php on line 165
One of my users is getting a blank screen when they try to use the dashboard. My error logs show this error message.
I think 128MB should be enough memory to run wordpress. I can bump up, but is there something else going on that I can fix?
]]>Hope someone can help, thanks ins advance!
]]>Please help me resolving this error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/mywebsite/public_html/wp-includes/meta.php on line 574
*this was only issue in one post type,other post type are working fine.
*site is already running for about two years and just a sudden yesterday that error comes out.
I already did the following troubleshooting steps w/c I got in codex and different forums but still the issue is unresolved:
1. Adjust memory limit in php.ini,wp_admin,htaccess
2. Temporary Create php.ini at wp_admin and wp_include (also in wp_content)
3. contact my host to adjust the memory limit
Thanks in advance…
]]>code in snippets: [ 'add_action( 'woocommerce_after_shop_loop_item_title','woocommerce_template_single_meta', 30 );
]
And i’ve edited the template page, creating a mirror of the file in my theme folder: child-theme/woocommerce/single-product/meta.php
This was working fine, i’ve just adjusted the text accompanying Categories & Texts. Now woo sometimes follows my tailored meta.php and sometimes ignores it. With no changes being made that might affect it.
Last night it was reading the tailored meta.php ..this morning it’s not. Haven’t changed anything in between.
Any ideas?
https://www.ads-software.com/plugins/woocommerce/
]]>