Connect Printful with Woocommerce for Dropshipping

Connect Printful with Woocommerce for Dropshipping

Tiempo de lectura: 3 minutos html Copy code Reading Time: 3 minutes Hello, today we are going to learn how we can connect Printful with WooCommerce for shipping without the need for storage using dropshipping. The first thing we need to do is go to the WordPress dashboard. http://localhost/wp-login/ *In case you are using localhost. We go to plugins and … Read more

Setting up WooCommerce with Docker using this Docker Compose

Setting up WooCommerce with Docker using this Docker Compose

Tiempo de lectura: 2 minutos Hello, today we are going to learn how to set up a WooCommerce store using WordPress directly with Docker Compose. In today’s e-commerce landscape, having a solid and versatile platform is essential for the success of any online business. WordPress and WooCommerce have become a powerful combination for creating attractive and functional online stores. If … Read more

Retrieve language of a WordPress post using the WordPress API

Tiempo de lectura: < 1 minuto html Copy code posts} AS wp_posts JOIN {$wpdb->term_relationships} AS wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) JOIN {$wpdb->terms} AS wp_terms ON (wp_term_relationships.term_taxonomy_id = wp_terms.term_id) JOIN {$wpdb->term_taxonomy} AS wp_term_taxonomy ON (wp_terms.term_id = wp_term_taxonomy.term_id) WHERE wp_posts.ID = %d AND wp_term_taxonomy.taxonomy = ‘language’ “, $post->ID)); // Add the language to the response object $response->data[‘language’] = $language; return $response; } add_filter(‘rest_prepare_post’, … Read more

Sending Meta Keywords and Description with WordPress API and Using Them in Any Theme

Sending Meta Keywords and Description with WordPress API and Using Them in Any Theme

Tiempo de lectura: 2 minutos And now we check if the added Keywords and Description are displayed. To do this, we open our post in the browser and right-click to inspect. The code inspector will appear, and we type Keywords, and the Keywords will appear: Same for the description: And now we add it to our POST, for that we … Read more

How to Generate Featured Image for WordPress Posts Using a URL or Image within the Content

How to Generate Featured Image for WordPress Posts Using a URL or Image within the Content

Tiempo de lectura: 2 minutos Reading time: 2 minutes Hello, today we are going to see how we can automatically generate an image from the images we add in our posts or articles, without the need to select a featured image. The first thing we need to do is open the WordPress control panel and select the theme file editor. … Read more

Fetching WordPress Categories with Python API

Fetching WordPress Categories with Python API

Tiempo de lectura: 3 minutos Reading time: < 1 minute Today we are going to learn how to fetch categories from the WordPress API. Let’s create a python file named code.py with the following content: import os from dotenv import load_dotenv import requests import json import random from requests.auth import HTTPBasicAuth def fetch_categories(): load_dotenv() WORDPRESS_USERNAME = os.getenv("WORDPRESS_USERNAME") WORDPRESS_PASSWORD = os.getenv("WORDPRESS_PASSWORD") ... Read more

Auto-publishing posts on WordPress using Python

Auto-publishing posts on WordPress using Python

Tiempo de lectura: 2 minutos Reading time: 2 minutes Today we are going to learn how we can auto-publish posts on our WordPress using Python. The first thing we need to do is create our remote_publish.py file. def post_publisher(wpBaseURL, postStatus): WP_url = wpBaseURL + “/wp-json/wp/v2/posts” auth = HTTPBasicAuth(WORDPRESS_USERNAME, WORDPRESS_PASSWORD) headers = { “Accept”: “application/json”, “Content-Type”: “application/json” } payload = json.dumps({ … Read more

Replace URL in WordPress for Domain Migration

Replace URL in WordPress for Domain Migration

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Hello, today we are going to see how we can replace the WordPress URL with a new one. We go to the WordPress files and search for wp-config.php. We modify these lines (if they are not present, we add them and they will be used by default): define('WP_HOME','https://domain.com'); define('WP_SITEURL','https://domain.com'); In ... Read more

Fix HTTP Issue in WordPress When Migrating to HTTPS. CSS or JS Resources Not Loading.

Fix HTTP Issue in WordPress When Migrating to HTTPS. CSS or JS Resources Not Loading.

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today, I’m going to show you how to fix the WordPress issue when migrating a site with SSL HTTPS and encountering the message “Mixed content blocked: WordPress”. This issue typically affects JSON and CSS files. This problem prevents the CSS or JS resources from loading on our WordPress website. To … Read more