Str_replace using shortcode with multiple changes
Str_replace using shortcode with multiple changes
Str_replace using shortcode with multiple changes
How to update all permalinks in site
All of the methods are being overridden when you load your own walker, but typically you would extend another Walker which works a bit like “filtering” or “pluggable functions”. Take a look at this very simple walker from another question: class my_extended_walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $output … Read more
Do look at the .htaccess file and check the RewriteBase. It should be commented out or read: RewriteBase / It sounds like it might be written as: RewriteBase /xyz Where xyz is the name of the folder controlling your subdomain. Also, what happens when you hit save twice on the Permalinks page?
after a lot of trial and error WP transients came to save me!! here is the solution for anyone that might need this… in the index.php (outside the main loop) i save the current random order in a transient: $order_array = array(); while ( $the_query->have_posts() ) : $the_query->the_post(); $order_array[] = get_the_ID() ; endwhile; set_transient(‘post_order’, $order_array, … Read more
I tried both codes and they worked for me, first I added this code add_filter(‘manage_posts_columns’, ‘bootpress_slider_columns’); function bootpress_slider_columns($defaults) { $defaults[‘featured_image’] = ‘Featured Image’; return $defaults; } and it added column both in custom post type and on posts Then I followed this link manage_${post_type}_posts_columns my post type is “slider” the below code worked for me … Read more
note: Your code is not a loop, it’s a query to get a list of posts. In your template there should be a loop (using that list of posts) with a function to call the featured image. This is where you should change the template, and remove the call to the featured image. If you … Read more
How can I open WP rich editor within colorbox in the front end?
In your archive.php file, you would want to replace this: <div class=”entry-content”> <?php colabs_custom_excerpt(); ?> <p class=”more”> <a href=”https://wordpress.stackexchange.com/questions/105195/<?php the_permalink() ?>”> <?php _e(“More”,”colabsthemes”); ?> </a> </p> With this <div class=”entry-content”> <?php the_excerpt(); // or the_content(); ?> </div><!– .entry-content –> The theme creator is MANUALLY inserting the more button (as you can see). You could just … Read more
i agree with s_ha_dum, this is not exactly very protective… but what you could do is build a validation form with jquery and if it passes then convert into the actual password. example: real password you created: 0123456789 user enters any ten digits: 6537268574 with jquery you can store the value entered somewhere (if you … Read more