Customizing Responsive Themes Menu [closed]

Without getting your hands too dirty, a lot of themes come with a CSS editor built-in so you overwrite rules. Feel free to do this for simple changes, and just be wary that your changes could get overwritten if you decide to update your theme in the future. However, if you feel comfortable going deeper, … Read more

How to get some information from the_content [closed]

You could initialize the video shortcode – – with the function do_shortcode. Exemplary usage would be like this: echo do_shortcode( ” ); Extra information: I have given an extensive answer to a similar question a couple of weeks ago. You should take a look I’m certain it will help you out. Especially if you still … Read more

onclick open window [closed]

Earlier it was giving you error. Try this. I have fixed errors in PHP syntax. function as_pdf_link( $strContent ){ global $wp_query; $strHtml=” <div id=”aspdf”> <a target=”_new” href=”” . get_bloginfo(‘wpurl’) . ‘/wp-content/plugins/as-pdf/generate.php?post=” . $wp_query->post->ID . “” onclick=”open(this.href, this.target, \’width=600, height=450, top=200, left=250\’); return false;”> <span>’ . stripslashes( get_option( ‘as_pdf_linktext’ ) ) . ‘</span> </a> </div> ‘; … Read more

Query for page content, and query for posts on the same page?

Use query link this. You are checking posts in $the_query. but you have used $query. <?php $custom_query = new WP_Query( ‘posts_per_page=4’ ); if ( $custom_query->have_posts() ) : while ( $custom_query->have_posts() ) : $custom_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php endwhile; else : get_template_part( ‘content’, ‘none’ ); endif; wp_reset_postdata(); ?>

Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]

Why do you need a plugin for that? Set image quality to 100% in WordPress with following code. function my_new_image_quality( $quality ) { return 100; } add_filter( ‘jpeg_quality’, ‘my_new_image_quality’ ); add_filter( ‘wp_editor_set_quality’, ‘my_new_image_quality’ ); Now when you upload a image, WordPress always crop your image for different thumbnail sizes but it also keeps orignal image. … Read more

Post/page without slug

If you are using pretty permalinks, all posts will have slugs. If you want to list these posts but make them unclickable, you might try creating a category especially for them, then checking for that category on your listing page.

Why am I not able to save / update data in wp_editor?

you’re using : // only low case [a-z], no hyphens and underscores $editor=”contenten”; and then trying to get it by different name: if(isset($_POST[‘content_en’]) && $_POST[‘content_en’] != ”) another thing is u using different keys like @vancoder said also remember to sanitize the data : https://codex.wordpress.org/Data_Validation this code should work for u : function __construct() { … Read more

How to assign a div class to a echo function [closed]

This is not a specific WordPress question, is a topic in php coding. You can add html markup inside the echo in your function, like the follow example: function show_today_date() { echo ‘<div class=”example”>’ . date( get_option( ‘date_format’ ) ) . ‘</div>’; } add_shortcode( ‘showtodaydate’, ‘show_today_date’ );