Incorporate zilla shortcode into theme
Incorporate zilla shortcode into theme
Incorporate zilla shortcode into theme
query_posts() should not be used, look into pre_get_posts hook. Whatever you do inside index.php template does not influence inside of single.php template. Two different top level templates aren’t (normally) loaded at the same time. You are explicitly requesting next_post_link() to limit next post to the same category via third argument, are you sure that’s not … Read more
altering theme – content generated by PAGES not PORTFOLIO
How do I keep images in posts below a certain size without editing the post?
This is not required, but if your theme doesn’t support multiple menu levels then you should note this in your theme documentation (readme file)
I changed the code to loop through all pages, instead of using wp_dropdown_pages() function. Following is the new code <?php while($mb->have_fields_and_multi(‘col2-project’)): ?> <?php $mb->the_group_open(); ?> <p> <span>Select Project</span> <?php $mb->the_field(‘project-id-2’); ?> <select name=”<?php $mb->the_name(); ?>”> <option value=””>None</option> <?php global $thispost; $myposts = get_pages(‘post_type=portfolio&post_status=publish’); foreach($myposts as $thispost) : ?> <option value=”<?php echo $thispost->ID; ?>” <?php $mb->the_select_state($thispost->ID);?> … Read more
Run following in your terminal: chmod 0644 /path/to/your/theme/js/common.js This command has to give your file proper rights and your web server will be able to read it.
You have to add more than one setting. Change $wp_customize->add_setting( ‘img-upload’ ); to two unique settings. i.e. img-upload-1, img-upload-2. Then call the settings in your code.
Enable WP to accept standard jQuery code embeding between the tags [duplicate]
So far, all you posted is backend functionality. Ob the frontend you have to actively display the data, as you already did in the backend. Like so: // assuming you’re in the Loop on your INDIVIDUAL page template echo wp_kses_post(get_post_meta(get_the_ID(), ‘_shortcode’, true)); If you don’t have an individual template file, you have to check for … Read more