Categories
User Help Web Pro

Duplicate content, canonical url and json-ld Article

If I have a duplicate content, which URLs should I use in json-ld Article schema? To be precise, let’s say I want to publish an article from my blog.example.xyz on another site e.g. popular.example.com. When I publish the article on popular.example.com I go and update canonical URL on my blog.example.xyz, and og:url property (both should […]

Categories
CMS Development Wordpress

Correct way to retrieve comment attributes for desired results

I’m playing with this code but can’t get it to work 100%. Comments return everything associated with it, but I want to retrieve the comments with only the desired attributes. <?php $args = array( ‘post_id’ =>$post->ID, ‘status’ => ‘approve’, ‘type’ => ‘wp_review_comment’, ); $comments = get_comments( $args ); // Create an empty array $comlistall = […]

Categories
CMS Development Wordpress

Correct way to retrieve comment attributes for desired results

I’m playing with this code but can’t get it to work 100%. Comments return everything associated with it, but I want to retrieve the comments with only the desired attributes. <?php $args = array( ‘post_id’ =>$post->ID, ‘status’ => ‘approve’, ‘type’ => ‘wp_review_comment’, ); $comments = get_comments( $args ); // Create an empty array $comlistall = […]

Categories
CMS Development Wordpress

Correct way to retrieve comment attributes for desired results

I’m playing with this code but can’t get it to work 100%. Comments return everything associated with it, but I want to retrieve the comments with only the desired attributes. <?php $args = array( ‘post_id’ =>$post->ID, ‘status’ => ‘approve’, ‘type’ => ‘wp_review_comment’, ); $comments = get_comments( $args ); // Create an empty array $comlistall = […]

Categories
CMS Development Wordpress

Correct way to retrieve comment attributes for desired results

I’m playing with this code but can’t get it to work 100%. Comments return everything associated with it, but I want to retrieve the comments with only the desired attributes. <?php $args = array( ‘post_id’ =>$post->ID, ‘status’ => ‘approve’, ‘type’ => ‘wp_review_comment’, ); $comments = get_comments( $args ); // Create an empty array $comlistall = […]