Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Browsing all 8245 articles
Browse latest View live

Franky57 on "How to override wp_list_pages and wp_list_bookmarks without...

Hi all ! I am finding a way to override some core functions of WordPress (wp_list_pages and wp_list_bookmarks) within my function.php theme file because I am so tired to always modify core code when I...

View Article


paulcoppock on "How to hide div if featured image caption does not exist?"

I'm using this function to display the caption for featured image: function the_post_thumbnail_caption() { global $post; $thumbnail_id = get_post_thumbnail_id($post->ID); $thumbnail_image =...

View Article


DragonDon on "adding a simple search to a setion"

Greetings all, I've been trying to setup a search form and it is driving me nuts. Here's the setup. WP 3.6 Simplethemes.com Element Theme (http://www.simplethemes.com/wordpress-themes/demo/element) I...

View Article

Ralac on "WP media show toolbar with selected images"

How can i show the toolbar with the selected images as seen on the image above on a custom media frame: http://i44.tinypic.com/23k8ars.png custom_uploader = wp.media.frames.file_frame = wp.media({...

View Article

dokgu on "Download-Monitor auto inserts code"

I've installed the latest download-monitor plugin and I wanted to modify the way it displays the download link. So what I did was to put this in the editor: <span class="file-details">...

View Article


halfhuman on "Insert new input field"

How do I add new input field on this code? public function form( $instance ) { $user_id = isset ( $instance['user_id'] ) ? $instance['user_id'] : array(); $user_id_num = count( $user_id ); $user_id[...

View Article

navyspitfire on "Target only pages in the same category"

I've been scrapping together pieces of code, but with this code I am trying to have it so it only targets pages in the same category. Ideas? <div class="port-nav left"> <?php /** * Infinite...

View Article

anamaher on "Scheduled posts view on public"

hello, i would like to ask about how to code Scheduled posts on a widget i know how to make the widget available but what is the code for viewing the Scheduled posts on public as a category or page...

View Article


jason w on "Link htpasswd with Wordpress user logins"

Hi, I have set up a wordpress website that has htpasswd protecting it when anyone accesses the site, all users login with a default password currently. Then once logged in the user can login to...

View Article


caioxavier on "Help with category page"

Hey guys, I'm new to WP and PHP so I can't really rely on my hardcoding skills to get what I want, so I need your help. It should be simple: I have category pages and child categories in some of them....

View Article

DrHell on "Dynamic Dropdown lists for Categories, Sub-Categories, Posts!"

Greetings people! I'm using WordPress 3.5 as CMS to develop my personal website. The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts...

View Article

dubzzdigital on "Adding a Pinterest button with php code?"

Hi everyone, I am wanting to add a Pinterest button into the purple slogan bar of our homepage at Cottage Flair. Any ideas where/how I would fit it into this:...

View Article

Pyrate.Ned on "Author dropdown with link to author page functionality like...

Well I looked for a while for a dropdown of authors with the same functionality as wp_get_archives. Which makes a dropdown with a javascipt onchange which brings your to the archive you pick. After...

View Article


cubryto on "Filter content with preg_replace"

Hi, I have the content with the following format 1) This is question 1? Answer: Answer for question 1 2) This is question 2? Answer: Answer for question 2 ... I would like to use prey_replace to...

View Article

Dan Rossiter on "Please change the plugin submission form "Plugin Name" field...

I was submitting a plugin earlier this evening and couldn't for the life of me figure out why the form kept complaining that my requested "Plugin Name" was taken. The issue was that when I included the...

View Article


zitanix on "How To Retrieve An Image Attachment's Alt Text?"

hello How To Retrieve Thumbnail Image Attachment's Alt Text? in version 3.4.2 i used this code : <?php $thumb_id = get_post_thumbnail_id($post->id); $alt = get_post_meta($thumb_id,...

View Article

Dorito22 on "Created functions.php - Now header image appears in title area"

Hello, Working with the 2010 Theme, I wanted to make my entire site wider (990px). I did that, but the header and menu bar needed to be updated. Eventually I found a post about creating a functions.php...

View Article


bramwittendorp on "MySQL database installation is not working"

For my first WordPress plugin I chose to make it my self difficult because I want to use a new table in the WordPress database installation. However if I install the plugin the database tables are not...

View Article

alanicolasouza on "wp_list_bookmarks in foreach don't work"

Hey everyone. The $categories is a array with the category slug. This code works just to the first cycle, which means, only the first category is printing. foreach($categories as $category){ if(...

View Article

Aill3urs on "Woocommerce Redirect"

Hi I have add in fonction.php this add_filter('woocommerce_login_redirect', 'ras_login_redirect'); function ras_login_redirect( $redirect_to ) { global $current_user, $wpdb; $role = $wpdb->prefix ....

View Article
Browsing all 8245 articles
Browse latest View live