register dependency css and js inside a plugin class

You’re using the incorrect hook. The only hook is wp_enqueue_scripts (plural). You use wp_enqueue_style() and wp_register_script() etc. on that hook, but the hook is always the same. So this: add_action(‘wp_enqueue_script’ , array( $this, ‘initBootstrap’ )); add_action(‘wp_enqueue_style’ , array( $this, ‘initBootstrap’ )); add_action(‘wp_register_script’ , array( $this, ‘initParallax’ )); add_action(‘wp_register_style’ , array( $this, ‘initParallax’ )); add_action(‘wp_register_script’ , … Read more

Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?

Is it possible to customize a wordpress post without using wp-admin dashboard? Not the way you’re wanting it, to answer this more thoroughly: Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)? Not out of the box, there is no frontend post editing UI in WordPress. You would have to build … Read more

add custom link to gallery images

This is the exact plugin you need – https://wordpress.org/plugins/gallery-custom-links/ No code customizations needed. For fixed image link (http://www.example.com): $args = array( ‘post_type’ => ‘post’, ‘name’ => ‘partners’ ); $logo_img = new WP_Query( $args ); ?> <div class=”container-fluid” id=””> <div class=”row” style=”margin-top:1em;margin-bottom:1em;”> <?php if( $logo_img->have_posts() ): while( $logo_img->have_posts() ): $logo_img->the_post(); $logo_gallery = get_post_gallery_images( $post->ID ); if( … Read more