All Questions
238
questions
1
vote
1
answer
108
views
Wordpress | get_user_meta in child themes php file [closed]
I'm trying to get the user meta in a file calles "print.php" in my child-theme folder:
define( 'WP_USE_THEMES', true );
$userid = $_GET['id'];
//$all_meta = get_user_meta( $userid );
When ...
2
votes
1
answer
2k
views
WordPress, HTML \\ How to insert <meta> tag in the <head> area of a specific page
I want to add a meta tag for my site description inside the head area of a specific page, before the body tag opens. The site is built with WordPress & Elementor.
I don't want to add it globally ...
0
votes
1
answer
446
views
I want to add a new value in the post meta without deleting the old value
I have post meta "metaname" with value "thatsme"
and I want to add a new value "thatsyou" in the post meta "metaname" without deleting the old value "...
0
votes
0
answers
28
views
WooCommerce user email and product meta data issue [duplicate]
with latest woocommerce updates my old code stoped working.
Any ideas how to fix it?
I need to add download links (from meta fields) to some products, that have that field not empty.
?&...
3
votes
1
answer
4k
views
Get product category and tag terms as meta keyword in WooCommerce
I have been using below code for using Tags & categories as META Keywords for my wordpress posts.
function wcs_add_meta_keywords() {
global $post;
if ( is_single() ) {
$cats = ...
1
vote
1
answer
54
views
how can i add category meta under the post date?
my link is madbabe.co
inside the grid only has title and date , I want category under the date.
i have found the code for the date, don't know how to add more code to display category.
// ...
0
votes
2
answers
37
views
Wordpress display posts from multiple value in meta
I have got main product with meta key: addons and meta values in this key: 129456,968945,495435 Each of these three numbers is the key with these meta values. For example:
Post 1: meta_key: ...
0
votes
1
answer
2k
views
WP_Query based on meta data boolean
In my wordpress site I have created a meta box for any page which is using post.php
This meta box includes a boolean checkbox where I want to decide whether or not it's going to be included with a ...
0
votes
1
answer
571
views
How to display emojis in meta description
I send my sitemap generated by Yoast SEO to Google but somehow, the SEO was sent wrong.
Here is an example of what I send: http://prntscr.com/rqmn9l
Here is what came out in Google: http://prntscr....
1
vote
1
answer
334
views
Yoast. Display metadesc in categories
I want to display metadesc in my category’s pages like this:
echo get_post_meta(get_the_ID(), ‘_yoast_wpseo_metadesc’, true);
It works in posts, but doesn’t work in categories.
In categories I ...
0
votes
3
answers
1k
views
How to fix WordPress Website showing Unknown results in Google?
I was exploring my WordPress powered website and I found some unknown results in Google Search which I had never seen before and isn't related to my website.
See the image here
I have also ...
0
votes
1
answer
689
views
Updating custom product meta box field - WooCommerce
I'm trying to update a custom product meta box field using the updating system from WooCommerce core. Here is my code:
The new field Shipping info
add_action( 'woocommerce_product_options_shipping', '...
0
votes
1
answer
601
views
Is there a Wordpress function for og:type, og:local, etc.?
I am setting up a custom WordPress site and I want to use my own SEO optimization. I am looking for a WordPress function to fill in for my meta tags so that I don't have to create a different header....
1
vote
0
answers
23
views
How to sort a table made of orders by meeting date
I'm trying to sort a list of invoices by "meeting_date" which is a meta in the database.
Heres, the code I have:
<?php if ( ! empty( $invoices ) ) {
foreach ( $invoices as $...
0
votes
0
answers
31
views
How to store values in database once I created a new metabox in each of my products? How to change these values correctly using a function?
I have created a new meta box in each of my products using the following code (pasted in functions.php):
/**
* ADD A CUSTOM SECURITY FIELD
*/
function cfsf_create_custom_field() {
$args = array(
'...