markos24ro
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 Multi-Step Forms] Attachments are not sentIf I use the upload files in first step the files are not sent.
Only if the files are uploaded in final step the files are sent.
How to solve this ??
- This reply was modified 8 years, 6 months ago by markos24ro.
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()I am using this code in functions php, so it is not working
Parse error: syntax error, unexpected ‘document’ (T_STRING) in /home/wallpapersitetem/public_html/demo4/wp-content/themes/funnypics/functions.php on line 598
Line 598 it is:
<select name="event-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
Thanks a lot for your time, I wish you a Happy New Year !
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()Yes, it is used:
$category = get_option('create-posts-from-images-category');
Here it is the entire select code:
<select name="create-posts-from-images-category" >'; $category_ids = get_all_category_ids(); foreach($category_ids as $cat_id) { $cat_name = get_cat_name($cat_id); if($category == $cat_id) { $html .= '<option selected="selected" value="'.$cat_id.'" '.$cat_name.'>'.$cat_name.'</option>' ; } else { $html .= '<option value="'.$cat_id.'" '.$cat_name.'>'.$cat_name.'</option>' ; } } $html.= '</select> </td> </tr> </table> <p class="submit"> <input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="create-posts-from-images-interval,create-posts-from-images-titlelist,create-posts-from-images-linklist,create-posts-from-images-category,create-posts-from-images-addtobody,create-posts-from-images-useimagename,create-posts-from-images-delimiter" /> <input class="button button-large button-primary" type="submit" name="Submit" value="Update" /> </p> </form>
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()Thanks Ivan, now the categories are displayed right, but on click update the select form does not keep the value of the selected category.
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()Thank you Calvin, now the code does not give the error, but on select instead to display all category’s names that I have on my site it is displayed only Uncategorized as many time as the number of my categories.
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()I’m a little bit silly, and I juts don’t get it.
Can you please update the code from https://pastebin.com/H7Vxn94V with the changes, I will give you a beer !
Forum: Fixing WordPress
In reply to: Replacement for a deprecated function get_all_category_ids()Thanks Calvin, that’s what I tried before, but I get this error:
Catchable fatal error: Object of class stdClass could not be converted to string in …/functions.php on line 686
Line 686 is this:
$html .= '<option value="'.$cat_id.'" '.$cat_name.'>'.$cat_name.'</option>' ;
Forum: Fixing WordPress
In reply to: All image resolution with separatorI mean to display the links like this in single.php file of my template:
Widescreen 16:10: 2880 x 1800 , 2560 x 1600, 1920 x 1200, 1680 x 1050, 1440 x 900, 1280 x 800, 1152 x 720, 960 x 600
Widescreen 16:9: 2560 x 1440, 2400 x 1350, 2048 x 1152, 1600 x 900, 1366 x 768, 1280 x 720, 1024 x 576, 960 x 540
Like on this page after select resolution:
Forum: Fixing WordPress
In reply to: How to show in slide show all posts from a categoryNo one can help me?