Skip to content

Instantly share code, notes, and snippets.


Ömer Faruk ofyalcin

View GitHub Profile
ofyalcin / wordpress-post-terms-list-generator.php
Last active December 27, 2020 20:21
Wordpress customizable post terms list generator.
View wordpress-post-terms-list-generator.php
* Wordpress customizable post terms list generator
* Add to your theme functions.php file.
* @param null $post_id
* @param string $tax
* @param bool $with_link
* @param string $seperator
ofyalcin / index.html
Last active October 20, 2019 14:05
Open Bootstrap tabs & pills tabs from another page (hash anchor)
View index.html
<!doctype html>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
ofyalcin / functions.php
Last active August 10, 2019 21:44
Wordpress: How to save custom taxonomy terms in json when a post saved.
View functions.php
// Add this code to bottom line of your active theme functions.php file.
function export_custom_terms_in_json () {
// get all terms of custom_taxonomy
$CustomTaxTerms = get_terms( 'custom_taxonomy', array( 'orderby'=>'count', 'hide_empty' => 0 ) );
if( ! is_wp_error( $CustomTaxTerms ) ) {
// encode term list
ofyalcin / add-several-term-meta-fields-to-custom-taxonomy.php
Created August 5, 2019 14:59 — forked from ms-studio/add-several-term-meta-fields-to-custom-taxonomy.php
A variation on the previous gists, this time we add *several* term meta fields
View add-several-term-meta-fields-to-custom-taxonomy.php
// source:
// original code authored by jgraup -
* We are registering the fields for a custom taxonomy, called "user-logement".
View dimox_breadcrumbs.php
* WordPress Breadcrumbs
* author: Dimox
* version: 2019.03.03
* license: MIT
function dimox_breadcrumbs() {
/* === OPTIONS === */
ofyalcin /
Last active January 11, 2023 22:12
$250 DigitalOcean Coupon Code - $250 DigitalOcean Credit - DigitalOcean Promo Code 2023

DigitalOcean Coupon

Hi everyone.

Today I will show you how to earn $200+$50 free credit for digitalocean.

Lets start.

Dont forget, you must have a new account on digitalocean for earn $250 coupon code.

View rrdirect.txt
RewriteEngine on
RewriteRule ^(.*)$$1 [R=301,L]
ofyalcin / phpMyAdmin.sql
Last active October 22, 2018 12:17
phpMyAdmin/MySQL kullanarak Wordpress kullanıcı şifresini değiştirme
View phpMyAdmin.sql
UPDATE `wp_users` SET `user_pass`= MD5('yenişifrenizburaya') WHERE `user_login`='deneme';
View FontAwesome 5 Free JSON Cheatsheet
"fab fa-buromobelexperte": "&#xf37f; B\u00fcrom\u00f6bel-Experte GmbH & Co. KG. brands",
"fas fa-burn": "&#xf46a; Burn solid",
"fas fa-bullseye": "&#xf140; Bullseye solid",
"fas fa-bullhorn": "&#xf0a1; bullhorn solid",
"fas fa-building": "&#xf1ad; Building solid",
"far fa-building": "&#xf1ad; Building regular",
"fas fa-bug": "&#xf188; Bug solid",
"fab fa-btc": "&#xf15a; BTC brands",
"fas fa-briefcase-medical": "&#xf469; Medical Briefcase solid",
ofyalcin / redirects.txt
Last active June 24, 2017 13:41
/tavsiye/redirects.txt (detaylı anlatım:
View redirects.txt