How to display a link in the footer section

If you look in the plugin’s directory plugins/wpmp_switcher/wpmp_switcher.php on line 53 you will see this: add_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); so you can either remove this action and call it in your theme your self with: remove_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); or you just make sure that wp_footer(); is inside your wrapper>footer divs.

Include widget within newsletter template?

You may already know this, but you need to specify the widget’s class name as the $widget_name variable in the template tag. For example, Depending on the widget, you may also need to add parameters to the_widget() to get it to display properly — see notes on thewidget() $instance and $args in the codex. http://codex.wordpress.org/Function_Reference/the_widget … Read more

Display one post based on ID from $_GET

If you want to reach the “single” page of a custom post type (or even a regular post), you can do this by going to http://example.com?p=[post_id]&post_type=[post_type_name]. If you use Pretty permalinks WordPress will redirect you to the “canonical” link, which may look like http://example.com/my-post-type/my-post-name/. So by changing the target of your form and the post_id … Read more

Use template tags in code snippets wordpress

Just tested this and it worked on my end. The shortcode itself would be [titlelink] function titlelink_ssc($content = null) { ob_start(); echo ‘<a href=”‘.get_permalink().'” title=”‘.get_the_title().'”>’.get_the_title().'</a>’; $titlelink_ssc = ob_get_clean(); return $titlelink_ssc; } add_shortcode(“titlelink”, “titlelink_ssc”);

Single dash converted to double dash

It’s lines 396 – 398 in the smart youtube plugin’s smartyoutube.class.php file: function check($the_content, $side = 0) { if (strpos($the_content, “httpv”) !== false ) { $char_codes = array(‘&#215;’, ‘&#8211;’); // <– 8211 is an en dash $replacements = array(“x”, “–“); // <– here’s where it’s swapping in — $the_content = str_replace($char_codes, $replacements, $the_content); // <–

How to reduce the number of pages in pagination

I believe you’re using 2 custom functions one of them is emm_paginate_loop() you’re showing. But i saw that settings for that custom pagination is on function emm_paginate() and specifically “gap”: ‘gap’ – Default is 3 (int). The minimum number of pages before a gap is replaced with ellipses (…). But that only sets a minimum … Read more

How to insert image from link in TinyMCE

here is a link on the code page. I can’t write the code for some reason my browser is not accepting the code tags will try another computer when possible but the link explains all. here is the link. http://codex.wordpress.org/TinyMCE_Custom_Buttons