This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create posts in WordPress from data in a MySQL database. Full article at: http://imelgrat.me/wordpress/bulk-upload-custom-posts-wordpress/ | |
//Load WordPress functions and plug-ins. Put correct path for this file. This example assumes you're using it from a sub-folder of WordPress | |
require_once ('../wp-load.php'); | |
$database['hostname'] = 'SERVER'; | |
$database['username'] = 'USER'; | |
$database['password'] = 'PASSWORD'; | |
$database['database'] = 'DATABASE'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Load WordPress | |
require_once 'path/to/www/wp-load.php'; | |
require_once ABSPATH . '/wp-admin/includes/taxonomy.php'; | |
// Set the timezone so times are calculated correctly | |
date_default_timezone_set('Europe/London'); | |
// Create post |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {render} from 'react-dom'; | |
import DataActions from 'flux/actions/DataActions.js'; | |
import Home from 'components/Home.js'; | |
import About from 'components/About.js'; | |
import Header from 'components/Header.js'; | |
import { | |
BrowserRouter as Router, | |
Route, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Forces all PDF links to download automatically, if the browser supports it. | |
* Otherwise, open the link in a new browser window or tab. | |
*/ | |
jQuery(document).ready(function($) { | |
$('a[href$=".pdf"]') | |
.attr('download', '') | |
.attr('target', '_blank'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#collections-listing ul { | |
list-style-type: none; | |
list-style-position: outside; | |
overflow: hidden; | |
} | |
#collections-listing ul li { | |
float: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<br /> | |
<br /> | |
<br /> | |
<style type='text/css'> | |
a.link{margin:0;padding:0;border:none !important;text-decoration:none !important;} | |
table,tr,td,a,span{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;} | |
</style> | |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> | |
<meta name='format-detection' content='telephone=no' /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://wordpress.stackexchange.com/questions/120060/frontend-image-upload?rq=1 | |
http://wordpress.stackexchange.com/questions/19064/frontend-image-uploading-from-edit-profile-page-goldenapples?rq=1 | |
http://wordpress.stackexchange.com/questions/24902/frontend-simple-local-avatar-upload?rq=1 | |
http://wordpress.stackexchange.com/questions/54044/wordpress-user-profile-upload-if-page-is-saved-file-reset?rq=1 | |
http://wordpress.stackexchange.com/questions/25635/uploading-avatar-from-the-frontend?rq=1 | |
http://wordpress.org/support/topic/plugin-simple-local-avatars-using-this-plugin-in-a-front-end-page | |
http://www.trottyzone.com/integrating-profile-builder-simple-local-avatars-with-php-code-for-post/ | |
http://www.wordpress-fr.net/support/viewtopic.php?id=80521 | |
http://wordpress.org/support/topic/front-side-support | |
http://www.trottyzone.com/upload-a-photo-via-front-end/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://designgala.com/how-to-change-wordpress-theme-directly-from-database/ | |
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; | |
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; | |
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'current_theme'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to edit a user profile on the front end? | |
//http://wordpress.stackexchange.com/questions/9775/how-to-edit-a-user-profile-on-the-front-end | |
//Forcing nickname as display_name in custom edit profile template | |
//http://wordpress.stackexchange.com/questions/35403/forcing-nickname-as-display-name-in-custom-edit-profile-template | |
/////// | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to install SASS on Windows 7 | |
1 - Download the ruby http://rubyinstaller.org/downloads/ | |
2 - Click install and select the option to create environment variables | |
( | |
If you forgot to schedule go to: | |
My Computer> Properties> Advanced Options> Environment Variables | |
Look for path and put in the path of the ruby bin installed, eg: C:\Ruby193\bin; | |
) | |
3 - Open cmd and download the gem of the SASS, typing: gem install sass |