URL Custom Rewrite
You can do something like $path = $_SERVER[‘REQUEST_URI’]; if (home_url($path) == ‘http://www.myweb.com/action/frame’ ) { header(‘Location: ‘ . ‘http://www.myweb.com/wp-content/plugins/myplugin/frame.php’); }
You can do something like $path = $_SERVER[‘REQUEST_URI’]; if (home_url($path) == ‘http://www.myweb.com/action/frame’ ) { header(‘Location: ‘ . ‘http://www.myweb.com/wp-content/plugins/myplugin/frame.php’); }
The header of Twenty-Sixteen uses flexbox for alignment. You can set the flex direction of the site-header-main class to column to display the menu under the title/tagline/logo area: .site-header-main { flex-direction: column; }
You’re missing quotes around the content of innerHTML. If correctoutput is <div></div>, then you’re script looks like this: $(‘#correcto’).innerHTML(<div></div>); Which is invalid, because you’re missing quotes. innerHTML needs a string, which is in quotes in JavaScript. That first < is where your error is coming from. So you need to do this: $(‘#correcto’).innerHTML(‘<?php the_field(‘correctoutput’); ?>’); … Read more
<?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $news= new WP_Query(array( ‘post_type’=>’post’, ‘posts_per_page’ => 3, ‘paged’ => $paged, )); if($news->have_posts()) : while($news->have_posts()) : $news->the_post(); the_title(); endwhile; $total_pages = $news->max_num_pages; if ($total_pages > 1){ $current_page = max(1, get_query_var(‘paged’)); echo paginate_links(array( ‘base’ => get_pagenum_link(1) . ‘%_%’, ‘format’ => ‘/page/%#%’, ‘current’ => $current_page, ‘total’ => $total_pages, ‘prev_text’ => … Read more
No it does not work, people that will need to translate the string will not be able to use the automated tools they usually use to extract the strings that need translation. And yes, it is always bad.
I used define( ‘SHORTINIT’, true ); $path = $_SERVER[‘DOCUMENT_ROOT’]; include_once $path . ‘/wp-load.php’; it seems to work fine.
It’s because you’re using esc_html to sanitize the setting, which converts all the <,> etc. into HTML entities, like >, which render as < but aren’t treated as those characters in terms of HTML, which is why tags aren’t rendering correctly. esc_html is supposed to be use for outputting HTML so that the markup is … Read more
once you add width: 100%; in your header container css
Well, I used the googles, and found this link https://davidwalsh.name/facebook-meta-tags which explains that you need to have a <meta property=”og:{tagName}” content=”{tagValue}”/> with the appropriate values to specify the image used when you share a link to FB. Lots of options in that meta command, and the article explains it quite well. Since you used various … Read more
This is a two step solution: Install plugin “Options for Twenty Seventeen” (Link) Add the following CSS to “Design” > “Customizer” > “Additional CSS” .navigation-top { position: fixed; bottom: auto; left: 0; right: 0; top: 0; width: 100%; } .custom-header { padding-top: 50px; }