Skip to content

Instantly share code, notes, and snippets.

View Rayhanuc's full-sized avatar
🏠
Working from home

Md. Rayhan Uddin Chowdhury Rayhanuc

🏠
Working from home
View GitHub Profile
<?php
require get_template_directory() . '/inc/cs-framework/cs-framework.php';
function industry_rayhan_theme_metabox ($options) {
$options = array(); // remove old options
$options [] = array(
'id' => 'industry_rayhan_slide_meta',
//industry_rayhan_slide_shortcode start
function industry_rayhan_slides_shortcode($atts){
extract( shortcode_atts( array(
'count' => 2,
'type' => 'page',
), $atts) );
$arg = array(
'post_type' => 'industry-slide',
'posts_per_page' => 3,
@Rayhanuc
Rayhanuc / rrf-Rayhanuc-practice-2.php
Created September 23, 2018 09:10
another shortcode test
//industry_rayhan_shortcode start
function industry_rayhan_shortcode($atts){
extract( shortcode_atts( array(
'count' => 2,
'type' => 'page',
), $atts) );
$arg = array(
'post_type' => $type,
'posts_per_page' => $count,
@Rayhanuc
Rayhanuc / metabox.config.php
Created March 1, 2018 10:10
Homework submitting
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// METABOX OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options = array();