Skip to content

Instantly share code, notes, and snippets.

View matheusgimenez's full-sized avatar

Matheus Gimenez Petroni matheusgimenez

View GitHub Profile
<?php
function jeo_change_js_image( $images ) {
$images[ '/js/src/icons/news-marker' ][ 'url'] = JEO_BASEURL . '/js/src/icons/testeicon.png';
$images[ '/js/src/icons/news-marker' ][ 'icon_size' ] = 0.3;
$images[ '/js/src/icons/news' ][ 'url'] = JEO_BASEURL . '/js/src/icons/testnews.png';
$images[ '/js/src/icons/news' ][ 'icon_size' ] = 0.25;
$images[ '/js/src/icons/news' ][ 'text_color' ] = '#FFFFFF';
@matheusgimenez
matheusgimenez / category.php
Last active September 20, 2018 17:35 — forked from hemerson321/category.php
category.php
<?php
get_header();
date_default_timezone_set('America/Manaus');
$dia = date('d');
$mes = date('m');
@matheusgimenez
matheusgimenez / salvar.php
Last active September 20, 2018 17:15 — forked from hemerson321/salvar.php
salvamento
<?php
/**
* Template Name: verificando
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<?php
/* Template Name: Migração -> Novos */
get_header();
require_once(ABSPATH . 'wp-admin/includes/media.php');
require_once(ABSPATH . 'wp-admin/includes/file.php');
require_once(ABSPATH . 'wp-admin/includes/image.php');
$request_url = 'https://esquerdaonline.com.br/wp-json/wp/v2/posts';
if ( isset( $_GET[ 'page_num' ] ) ) {
$request_url .= '?page=' . $_GET[ 'page_num' ];
} else {
@matheusgimenez
matheusgimenez / page-migracao.php
Created August 30, 2018 04:51
Script de importação de posts WordPress para WordPress usando a REST API
<?php
/* Template Name: Migração -> Blog Teoria */
get_header();
require_once(ABSPATH . 'wp-admin/includes/media.php');
require_once(ABSPATH . 'wp-admin/includes/file.php');
require_once(ABSPATH . 'wp-admin/includes/image.php');
$autores_excluir_str = 'Alejandro Iturbe,Alicia Sagra,Aluizia do Nascimento Freire,Américo Gomes,Ana Godoi,Ana Pagu,Antonio Rodrigues Belon,Daniel Solon,Francesco Ricci,Gustavo Henrique Lopes Machado,Jeferson Choma,Jerônimo Castro,Joana B.,José Welmowicki,Julio Anselmo,Martín Hernández,Martin Ralph,Miguel Malheiros,Nazareno Godeiro,Otavio Luiz Pinheiro Aranha,Pablo Biondi,Rodrigo Ricupero,Ronald León Núñez,Rosenverck E. Santos,Soraya,Misleh,Wagner Miquéias F. Damasceno,Wilson Honório da Silva,Vinicius Lima da Silva,Zé Maria';
$autores_excluir = explode( ',', $autores_excluir_str );
var_dump( $autores_excluir );
echo '<br><br>';
<?php
$args = array(
'post_type' => 'post',
's' => 'Expresso',
'post_status' => 'publish'
);
?>
<?php $the_query = new WP_Query( $args ); ?>
<?php $titles = array();?>
<?php if ($the_query->have_posts()): while ($the_query->have_posts()) : $the_query->the_post();?>
clipping - media; audiovisual - videos
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp-docklands/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp-docklands/index.php [L]
</IfModule>
Options -Indexes
Hi,
This notice confirms that your site admin email was changed on WP Core.
Your site new admin email is: mathewus@brasa.art.br
Regards,
All at WP Core
http://localhost/wp-svn/src
{
"items":[
{
"image":[
"http:\/\/localhost\/brasa_slider\/wp-content\/uploads\/2016\/11\/Captura-de-tela-de-2016-08-25-190401-1006x408.png",
1006, //image width
408, // image height
true // is_intermediate
],
"url":"#url1"