wp query – How can i create social media icons with link using meta box in custom post type?

function thegem_team_persons_register_meta_box($post) {
add_meta_box(‘thegem_team_person_settings’, __(‘Person Settings’, ‘thegem’), ‘thegem_team_person_settings_box’, ‘thegem_team_person’, ‘normal’, ‘high’);

function thegem_team_person_settings_box($post) {
wp_nonce_field(‘thegem_team_person_settings_box’, ‘thegem_team_person_settings_box_nonce’);
$person_data = thegem_get_sanitize_team_person_data($post->ID);

” />

” />

” />

” />


” />

‘Self’, ‘_blank’ => ‘Blank’), $person_data(‘link_target’), ‘thegem_team_person_data(link_target)’, ‘person_link_target’); ?>

$value) : ?>
)” type=”text” id=”person_social_link_” value=”” />
esc_html__(‘Select social’, ‘thegem’)),thegem_team_person_additional_socials_list()), ”, ‘thegem_team_person_data(additional_social_links)(social)()’); ?>

esc_html__(‘Select social’, ‘thegem’)),thegem_team_person_additional_socials_list()), $link(‘social’), ‘thegem_team_person_data(additional_social_links)(social)()’); ?>

” />

$(function() {
$(‘.additional-socials’).on(‘click’, ‘.add-new’, function(e) {
$(‘.additional-socials .social-pane.empty’).clone().insertBefore($(this)).removeClass(’empty’).show();
$(‘.additional-socials’).on(‘click’, ‘.remove a’, function(e) {

How to query for all posts that have a particular meta key?

I think something like this should do the job:

$meta_query = array(
         'key'     => 'foo',
         'compare' => 'EXISTS',

$args = array(
    'meta_query' => $meta_query

$query = new WP_Query( $args );

if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
        $post_id = get_the_ID();
} else {
    // no posts found


php – Add new post meta data after updated_post_meta?

Here’s the situation.

Basically, I’m trying to add user ID (to the newly created post meta data) that hearted the post.

My current code:

add_action('updated_post_meta', 'add_likers_id_to_post_meta');
function add_likers_id_to_post_meta ( $meta_id, $post_id, $meta_key, $meta_value ) {
        $user_id = get_current_user_id();

    if ( '_heart_this' == $meta_key ) {
         if ( 'liker1' == '' ) {
                update_post_meta( $post_id, 'liker1', $user_id );


The above should work like this:

There’s an already existing post with meta data _heart_this.

When the current user updates the meta data _heart_this, the new post meta_key liker1 will be created with meta_value of that user ID.

But the above code do not work.

I know I’m missing something.

Any help would be appreciated.


UPDATE: I have worked around a bit differently.

First, I will add custom meta data to the post, when the new post is created (using save_post). Having in mind that the post won’t be updated.

add_action('save_post', 'add_post_meta_data_fields_for_likers', 10,3);
function add_post_meta_data_fields_for_likers ( $post_id ) {

                add_post_meta( $post_id, 'liker1', '0' );

And then I will use update_post_meta to update with the user ID, when the post is hearted:

add_action('updated_post_meta', 'update_liker1_id_when_hearted');
function update_liker1_id_when_hearted ( $meta_id, $post_id, $meta_key, $meta_value ) {

        $user_id = get_current_user_id();

    if ( '_heart_this' == $meta_key ) {
         if ( 'liker1' == '0' ) {
                update_post_meta( $post_id, 'liker1', $user_id );



This seems to do the job.
hope this helps for others.

seo – Website’s title and meta description don’t show up in google search

seo – Website’s title and meta description don’t show up in google search – Webmasters Stack Exchange

Will adding 100 meta keywords to the same page hurt or help SEO?

Is it possible to add several keywords to the same page?

Yes but It doesn’t seem practical.

Will this penalize my page by Google?

Possibly (see below)

What is the implication in adding many keywords? I am expecting I get traffic from all keywords, if it is 100 or 1000000. Also I would like to know, meta-name should be keyword or…

It’s actually a wonderful way to make your server slow.

The reason is because in your image example, if you start adding a whole bunch of keywords in your meta tags then its more data the browser must process before users see content. This will hurt mobile users with poor data connections (and no wifi) who are trying to connect to your website, and if your site is by chance extremely popular, its possible that hundreds of mobile users with poor connections are hitting refresh frequently because they think the page isn’t working when the middle of the meta tag in the page is being downloaded to all devices at once from the same server. While upgrading the server is an option, your better option is to simply cut back on the code (including unnecessary meta tags) and show more content.

Take a look:


These are URLs to services that can assess the amount of code to text on your site. It will tell you how much text of an entire page the user can see and how much is code. Try to make the percentage it reports to you high to get better ranked in search engines.

As others mentioned, take those keywords out of the tag and blend them into your actual content that people can see, but make sure the keywords become complete natural paragraphs.

seo – Two meta description showing on the site

The homepage meta description is showing on every page. Although I have separate descriptions for pages and categories, it also showing the homepage description as well. I want to remove that and show only the description I have specified on those pages. I am using the Yoast SEO plugin, so I have contacted them as well but they couldn’t help me. I had this same issue with my other website but I got that fix with some code. I don’t remember what exactly I did as it’s a long time ago.

I want to disable or remove the theme meta descriptions setting so it won’t come on the articles which I will on the categories. So can you please help me to fix it?

My Site: https://zumboly.com/tech/alternatives-of-kisscartoon/

search engines – Old business name appearing at the end of meta titles on Google – how do I get rid of it?

I’m having some issues with how meta titles are appearing on Google. Some pages have our old business name added onto the end of their meta titles, even though the old name doesn’t appear anywhere on our CMS. This is only an issue with Google, as on other SERPs they appear correctly (same meta title just without the old business name).

The old business name isn’t in the page source, and we’ve done a scan of directories for any old references and haven’t found anything, so I’m not sure where it’s picking it up from or how to amend it?

If anyone has any ideas I would really appreciate them.


Magento 1: Images’ “meta data” lost after uploading product photos to Magento 1.9 website

Magento 1.9.4
Porto theme

I have been putting a lot of work in adding “meta data” on all the images on the website. I do this on Adobe Photoshop. It seems to have disappeared.

Is there anything on Magento that would do this? What can I do so that the ‘meta data’ remains on the product images in Magento?


The original product photo which we upload has 244 KB while the image on the website is only 24.1 KB. This likely means that it gets downsized and the meta tags are stripped in the process. How can we change it so that it keeps the meta tags during the downsizing process?

WordPress User Meta & ChromePHP or other way to debug/view php variables

I am developing a plugin to extend BuddyBoss platform. Specifically I am sync’ing BB user info with WordPress User meta data.

Most of my code works (country and regional organisation update fine), but sync’ing my ‘gender’ field is not working as expected. It seems to work for male, and female, but when Other is selected, it sets the wordpress user meta field as ‘female’. I have two questions:

  1. Can you see any issues with this code: (ignore all the 5 output to console attempts – that is my second question below!)
function BB_WP_SYNC_update_wordpress_usermeta( $user_id, $posted_field_ids, $errors) {
    console_log( $user_id);
    debug_to_console("inside sync function");
    ChromePhp::log("chromephp inside sync");

    if ( empty( $user_id ) ) {
        $user_id = bp_loggedin_user_id();

    if ( empty( $errors ) ) {
        $country = xprofile_get_field_data(9, $user_id);
        $region = xprofile_get_field_data(29, $user_id);
        $gender = xprofile_get_field_data(5, $user_id);

        if ($gender == 'his_Male') {
            $wpgender = 'Male';
        } elseif ($gender = 'her_Female') {
            $wpgender = 'Female';
        } else {
            $wpgender = 'Other';
        $dob = xprofile_get_field_data(4, $user_id);
        update_user_meta($user_id, 'ofc_country', $country);
        update_user_meta($user_id, 'ofc_regional_organisation', $region);
        update_user_meta($user_id, 'ofc_gender', $wpgender);
        update_user_meta($user_id, 'ofc_date_of_birth', $dob);

    } else {
add_action( 'xprofile_updated_profile', 'BB_WP_SYNC_update_wordpress_usermeta', 1, 3 );

Question 2: I have tried various methods (as can be seen from the code above) to output the gender variables to the console. But nothing works. I have set up ChromePhp, and it works if I use it in another function in the same plugin, but I can’t get it to work within this particular function. Same with creating a function to use JS to output to the console. I get nothing. var_dump also doesnt work – I assume because the user profile reloads once editing is done and submit is pressed. (I’m no expert, so this has been doing my head in). The function that ChromePHP works in is part of the template for a Buddyboss Addon. This outputs to the console fine, so I know ChromePhp is set up correctly:

    if ( ! function_exists( 'BB_WP_SYNC_get_settings_sections' ) ) {
    function BB_WP_SYNC_get_settings_sections() {
        ChromePhp::log('Hello console!');

        $settings = array(
            'BB_WP_SYNC_settings_section' => array(
                'page'  => 'addon',
                'title' => __( 'WP Sync Settings', 'buddyboss-wp-usermeta-sync' ),

        return (array) apply_filters( 'BB_WP_SYNC_get_settings_sections', $settings );

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheap USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Best Quality USA Private Proxies