Skip to content

Instantly share code, notes, and snippets.

View waqasjamal-zz's full-sized avatar

Waqas Jamal waqasjamal-zz

View GitHub Profile
@waqasjamal-zz
waqasjamal-zz / gist:7428185
Last active February 22, 2021 19:37
Python Code for adding posts to WordPress remotely
import urllib
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods import posts
import xmlrpclib
from wordpress_xmlrpc.compat import xmlrpc_client
from wordpress_xmlrpc.methods import media, posts
import os
########################### Read Me First ###############################
'''
------------------------------------------In DETAIL--------------------------------
@waqasjamal-zz
waqasjamal-zz / WooCommerce-pagination-fix.php
Created August 9, 2014 14:01
WooCommerce shortcode pagination fix for pages
<?php
/* Code for Pagination on the Books Page */
if ( ! is_admin() ) {
// ---------------------- FRONTPAGE -------------------
if ( defined('WC_VERSION')) {
// ---------------------- WooCommerce active -------------------
/**