Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

LOOR Lab loorlab

🎯
Focusing
Block or report user

Report or block loorlab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View closeSkype.bat
taskkill /f /im skypeapp.exe
taskkill /f /im skypehost.exe
taskkill /f /im SkypeBridge.exe
taskkill /f /im SkypeBackgroundHost.exe
taskkill /f /im SkypeApp.exe
@loorlab
loorlab / index.php
Last active Apr 28, 2019
Solution : The script encountered an error while running an AJAX request. search/replace WordPress
View index.php
https://github.com/interconnectit/Search-Replace-DB/issues/217#issuecomment-421833420
@loorlab
loorlab / even_odd_display_repeater_acf_WP.php
Created Mar 30, 2019
Even / Odd Display with Repeater ACF Field - WordPress
View even_odd_display_repeater_acf_WP.php
<div class="level customers level-wrapper">
<ul class="categories">
<?php if( have_rows('items_page_block') ): ?>
<?php while( have_rows('items_page_block') ): the_row();
// vars
$image_item_block = get_sub_field('image_item');
$title_item_block = get_sub_field('title_item');
$text_item_block = get_sub_field('text_item');
if( get_row_index() % 2 == 0 ){ ?>
@loorlab
loorlab / fix_wxr_file_WP.md
Last active Feb 8, 2019
FIX This does not appear to be a WXR file, missing/invalid WXR version number. WordPress via http://simplysmartmedia.com/2016/04/solved-this-does-not-appear-to-be-a-wxr-file-missinginvalid-wxr-version-number/
View fix_wxr_file_WP.md

Find the line :

<wp:wxr_version>1.2</wp:wxr_version>

Change it to:

<wp:wxr_version>1.1</wp:wxr_version>
@loorlab
loorlab / install_wp-cli_WP.md
Last active Feb 8, 2019
Install WordPress with WP-CLI
View install_wp-cli_WP.md

Install WordPress - Folder : /blog/

mkdir blog
cd blog
wp core download

Create wp-config.php

wp core config --dbname={YOUR DATABASE NAME} --dbuser={YOUR DATABASE USERNAME} --dbpass={YOUR DATABASE PASSWORD} --dbprefix={YOUR PREFIX DATABASE}
View get_yoast_seo_data_WP.php
<?php
/**
* Version: 4.0
* Date: 28/03/2018
* Source: https://deanandrews.uk/get-yoast-seo-data/
*
* Note:
* This code is provided "as is" and any expressed or implied warranties, including, but not limited to, the implied
* warranties of merchantability and fitness for a particular purpose are disclaimed.
* In no event shall the regents or contributors be liable for any direct, indirect, incidental, special, exemplary, or
View focus_keyword_yoast_seo_post_WP.sql
SELECT `meta_value`
FROM `wp_postmeta`
WHERE `meta_key` = '_yoast_wpseo_focuskw'
AND `meta_value` != ''
AND post_id = 537994
ORDER BY `wp_postmeta`.`meta_key` DESC
You can’t perform that action at this time.