Skip to content

Instantly share code, notes, and snippets.

View shahadat014's full-sized avatar

Md.Shahadat Hossen shahadat014

  • ACS TEXTILES BD LTD.
  • Rupganj, Narayanganj, Dhaka
  • 09:12 (UTC +06:00)
View GitHub Profile
@shahadat014
shahadat014 / markect place
Created August 2, 2015 04:39
apply jobs another markect place site
modern cv genarator
=====================
http://www.careerealism.com/top-resume-trends-2014
another markect place
=====================
http://­www.indeed.com/jobs
http://wphired.com/
@shahadat014
shahadat014 / metabox cmb2
Last active August 29, 2015 14:22
metabox cmb2 total fields links ,, create custom post taxonomy(category support)
https://github.com/WebDevStudios/CMB2/wiki/Field-Types
http://metabox.io/(another metabox link)
Most important create custom post taxonomy(category support)
if ( ! function_exists( 'storyteller_theme_custom_posts_taxonomy' ) ) :
function storyteller_theme_custom_posts_taxonomy() {
register_taxonomy(
@shahadat014
shahadat014 / gist:9066554bcfa157f13aeb
Created May 23, 2015 06:14
Custom post loop with custom fields(redux framework)
<?php
global $post;
$args = array( 'posts_per_page' => -1, 'post_type'=> 'posttype', 'orderby' => 'menu_order', 'order' => 'ASC' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<?php
$job_link= get_post_meta($post->ID, 'job_instructions', true);
?>
@shahadat014
shahadat014 / gist:8f34699702ba9edde05c
Last active August 29, 2015 14:17
for wordpress comments
//call function.php
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
//call single.php
<?php comments_template( '', true ); ?>
// or you see Down single.php
@shahadat014
shahadat014 / wordpress code
Last active August 29, 2015 14:17
image resize for custom post slide ,and contact-form- 7
<?php the_post_thumbnail( 'thumbnail', array( 'class' => 'author-photo' ) ); ?>
// contact form 7
[contact-form-7 id="234" title="footer contact form"]
<label class="incave-contact-label">Name<span>*</span></label>
@shahadat014
shahadat014 / wordpress code
Created March 9, 2015 14:40
Tiny MCE botton add
//This code call,function php
function my_add_mce_button() {
// check user permissions
if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) {
return;
}
// check if WYSIWYG is enabled
@shahadat014
shahadat014 / wordpress code
Created March 7, 2015 06:07
option-tree,archive
// call, function php for option tree
// option tree
include_once('option-tree/theme-options.php');
/**
* Required: set 'ot_theme_mode' filter to true.
*/
add_filter( 'ot_theme_mode', '__return_true' );
@shahadat014
shahadat014 / wordpress code
Last active August 29, 2015 14:16
menu,widget,custom post registration
//custom post register.................
<?php
function custom_post_register(){
register_post_type('slide', array(
'public' => true,
'label' => 'slide',
'labels' =>array(
'name' => 'slides',
'singular_name' => 'slide',
@shahadat014
shahadat014 / wordpress
Last active August 29, 2015 14:16
post-excerpt php,page php,sigle php,dynamic style css and js,crows browser support code,default supports code, pagination
// post-excerpt php code
<?php if(have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article>
<div class="post-image">
<div class="post-heading">
<h3><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h3>
</div>
<?php the_post_thumbnail('post-thumbnail'); ?>
@shahadat014
shahadat014 / wordpress
Last active August 29, 2015 14:16
create wordpress site all everything simple code.
style="background-image: url(\''.$background.'\');"
include_once('inc/default-supports.php');
'.do_shortcode ($content).'
// for custom post in the shortcode
'.get_permalink().'
'.get_the_excerpt().'
'.get_the_title().'