Dharmang
  • Member for 7 years, 10 months
  • Last seen more than a month ago
SQL to update custom post taxonomies
Accepted answer
1 votes

You will need to join four tables to get categories of custom post type "review" wp_term_relationships wp_posts wp_term_taxonomy wp_terms by using following query you can get list of categories ...

View answer
404 on form submit
4 votes

Do not use variable name "name" for html textbox control, use something else. This behavior is due to internal handling of WordPress with "name" variable found in query string of posted data.

View answer
Flexslider won't work on Wordpress
1 votes

It seems like you are following the tutorial from tutsplus "Slider to Your WordPress Theme" Coding looks correct but as @cybmeta already mentioned in the comment you need to set Featured Image for ...

View answer
Editing image dimension - to edit the main image file
0 votes

You will need to find images manually under uploads folder and replace them one by one with same name and compressed version, there does not seem to be an option in admin panel to replace existing ...

View answer
Save/retrieve form data best practises for theme development
0 votes

It depends upon the requirement how the form submission entries is going to work afterwards. if you want to collect info from front end and log them to database (with listing in admin panel), ...

View answer
Showing a link with Javascript based on log-in status
Accepted answer
0 votes

It is string escape problem with PHP Syntax Correct Code: <?php if ( is_user_logged_in() ) { echo ''; } else { echo '<a onclick="ppOpen(\'#login_panel\', \'800\',1)" href="javascript:void(0)"&...

View answer
Get XAMPP to divert to my site automatically
Accepted answer
0 votes

The problem seems to be with Apache configuration. Please check your httpd.conf file and check also if any virtual hosts (v-hosts) are defined. More details on the httpd.conf file: http://httpd....

View answer
How to add data from wordpress tables to new database tables you have created
0 votes

I would suggest to use double prefix like wp_hm_account, since it will allow you to recognize the tables (as you mentioned in comment) and you will be also able to use wpdb class properly.

View answer
Help with my first Metabox helper class
0 votes

The problem seems on the line no 279 of metabox class api definition, below is your code: '<img src="'.$label.'" class="optionimg '.$selected_value.'" onclick="document.getElementById(\ ''.$field['...

View answer
Search in particular category in wordpress
0 votes

You can use get_posts (Method: get_posts) which returns posts according to WordPress WP_Query parameters and then pass parameters for category and search keyword in cat and s params respectively.

View answer
Let users upload image(s) to the post from front end
1 votes

wp_insert_attachment returns the resulting post_ID of attachment record created in posts table, so you will need to add these IDs (multiple) in the post meta table using update_post_meta as suggested ...

View answer
Change post thumbnail using front end post edit form
Accepted answer
3 votes

it is much easier with WordPress inbuilt function media_handle_upload http://codex.wordpress.org/Function_Reference/media_handle_upload // These files need to be included as dependencies when on the ...

View answer
Pull Youtube Link from 2nd WP_Editor
0 votes

As your problem is to find YouTube URL from HTML contents, following link may help you: https://stackoverflow.com/a/5831191/147618 Here is required regex copied from the same link. // Linkify ...

View answer
How to limit the characters shown on the page - get_content
2 votes

WordPress has inbuilt function force_balance_tags which I belive is not explored much but it can be useful in such scenario. get the content and truncate it to any arbitrary length $content = ...

View answer
WordPress Multisite — Have same navigation, sidebar and footer across all sites.
0 votes

To achieve this functionality, You will need to install same Theme across all network website and enable it by default for them.

View answer
Define locale WordPress uses with gettext functions?
Accepted answer
0 votes

Have you tried to add/change language flag in wp-config.php file define ('WPLANG', 'en_GB'); REF: Installing WordPress in Your Language

View answer
Contact Form 7 + Configure SMTP: Sender email appearing as my own email
0 votes

Congratulations, your Contact Form 7 and SMTP Configuration are correct so you are getting emails properly. Now coming back to your question: it is displayed as my own email : it is correct ...

View answer
How to let users change site language?
0 votes

There are two types of translations in the WordPress website: Label Translation in WordPress Core and Theme, for that gettext technique is useful (as mentioned by you .po and .mo files) Content ...

View answer
Echo the custom field value from the latest post from the 'video' post format?
Accepted answer
2 votes

While this may not answer your question, but it will be helpful to solve it. It seems like the statement $video = get_post_meta($postid, 'dt_video', true); is assigning blank string value to $...

View answer
Get current category id from post page wordpress
0 votes

As mentioned by Gaffen : "changing a posts layout depending on what category is was visited from" First on the category template page in your theme (i.e. category.php) get the category id and store ...

View answer