Skip to content

Instantly share code, notes, and snippets.

View loorlab's full-sized avatar
💻
💥👩‍🚀👨‍🚀💥

LOOR Lab loorlab

💻
💥👩‍🚀👨‍🚀💥
View GitHub Profile
@loorlab
loorlab / links_consultas_tramites_Colombia_Informativo.md
Last active April 13, 2024 23:38
///////////////////// Links de Consultas & Trámites en Colombia - **INFORMATIVO** ///////////////////// ///////////////////// ///////////////////// ///////////////////// Use la información bajo su propia responsabilidad, esto al ser de carácter informativo no nos hacemos responsables por el uso de la misma. Última actualización: 13/04/2024
@loorlab
loorlab / wp-cheat-sheet
Created October 20, 2015 07:28
Wordpress cheat sheets
1. Theme Structure
- style file
style.css
- header section
header.php
- main section
index.php
@loorlab
loorlab / master_tools_herramientas_web_online_loorlab.md
Last active April 6, 2024 14:53
Herramientas Web / Master Tools * Online * via LOOR Lab @loorlab ✨ Update: 06/04/2024

/////////////////////////////////////////////////////////////////////////////////////////////////////

Herramientas Web / Master Tools * Online * 🛠

https://www.loorlab.com/

/////////////////////////////////////////////////////////////////////////////////////////////////////

Diseño / Design 🖼

@loorlab
loorlab / select_html_ciudades_colombia.html
Created March 23, 2020 18:29
Select Listado HTML Ciudades - Colombia
<label for="inputCiudadLine2" class="control-label">Ciudad</label>
<select class="form-control" id="inputCiudadLine2">
<option value="">-</option>
<option value="Arauca">Arauca</option>
<option value="Armenia">Armenia</option>
<option value="Barranquilla">Barranquilla</option>
<option value="Bogotá">Bogotá</option>
<option value="Bucaramanga">Bucaramanga</option>
<option value="Cali">Cali</option>
<option value="Cartagena">Cartagena</option>
@loorlab
loorlab / wp-cli_WP.md
Last active March 28, 2024 00:11
WordPress with WP-CLI

Install WordPress - Folder : /blog/

mkdir blog
cd blog
wp core download

Create wp-config.php

wp core config --dbname=test_db --dbuser=test_user --dbpass=password_user --dbhost=localhost --dbprefix=prefix_
@loorlab
loorlab / enable_webp_WP.php
Last active February 7, 2024 19:59
Allow WebP Upload in WordPress
<?php
//enable upload for webp image files.
function webp_upload_mimes($existing_mimes) {
$existing_mimes['webp'] = 'image/webp';
return $existing_mimes;
}
add_filter('mime_types', 'webp_upload_mimes');
// functions.php
//enable preview / thumbnail for webp image files.
@loorlab
loorlab / ip_blocked_WP.txt
Last active January 23, 2024 04:22
IP Blocked | WordPress by LOOR Lab | @loorlab | 22-01-2024 | ***Data obtained through our firewall detection. We are not responsible for the use given to this information.**
72.11.157.81
3.231.228.54
185.81.157.240
82.165.119.24
185.212.148.112
91.132.138.77
213.232.87.172
212.227.164.225
37.49.230.213
188.166.208.203
@loorlab
loorlab / rewrite_title_archives_WP.php
Last active October 12, 2023 21:31
Rewrite Title - To change the default output of get_the_archive_title() in WordPress, you can use the get_the_archive_title filter. This allows you to modify the title displayed for archive pages such as category, tag, date, and author archives.
<?php
// functions.php
function custom_archive_title($title) {
if (is_category()) {
$title = 'Category: ' . single_cat_title('', false);
} elseif (is_tag()) {
$title = 'Tag: ' . single_tag_title('', false);
} elseif (is_author()) {
$author = get_queried_object();
$title = 'Author: ' . $author->display_name;
@loorlab
loorlab / ACF_Relationship_WP.php
Created September 2, 2023 22:32
ACF Relationship - Shortcode
<?php
/* Recent Post | image */
function show_related_posts($atts) {
$atts = shortcode_atts(array(
'post_id' => get_option('page_on_front'),
), $atts);
$related_post_ids = get_field('recent_post', $atts['post_id']);
if ($related_post_ids) {