omidgs
Forum Replies Created
-
Forum: Themes and Templates
In reply to: problem with heder.phpsolved thnks
Forum: Fixing WordPress
In reply to: category images in category.phpthank you andrew
this plugin is great but how i can display the subcategoies in parent category page and the posts in subcategory category page with this?Forum: Fixing WordPress
In reply to: display post thumb as subcategories imageany idea?
Forum: Fixing WordPress
In reply to: how to display subcategory images in main categoryhow i can use this ?
please explain me width an example of usage
thanksForum: Fixing WordPress
In reply to: how to display subcategory images in main categoryshadez thank for your reply
i have another idea for that
can id display the first featured post thumbnail of subcategory with its name ?
if this possible web have a grid of thumbs of subcategory in main category page that i like it
is this possible?Forum: Themes and Templates
In reply to: how to display subcategories in category.phpno idea?
Forum: Themes and Templates
In reply to: Css3 not working in IE9 in my themeno idea?
please give me a standard header.phpForum: Themes and Templates
In reply to: Css3 not working in IE9 in my themeborder-radius , gradiant ,@fontface and box shadow
anyone dosnt workForum: Plugins
In reply to: [WPeMatico RSS Feed Fetcher] save changes problem wpematico pluginno comment please help me !
Forum: Fixing WordPress
In reply to: auto assign category to post by tag.title or word of contentHello
i added this code in function.php of Twenty Eleven and some more themes and in all of them i get this errorWarning: Invalid argument supplied for foreach() in /home/arista/public_html/wp-content/themes/twentyeleven/functions.php on line 604 Warning: Cannot modify header information - headers already sent by (output started at /home/arista/public_html/wp-content/themes/twentyeleven/functions.php:604) in /home/arista/public_html/wp-includes/pluggable.php on line 866the code :
function mam_add_category ($post_id = 0) { if (!$post_id) return; $tag_categories = array ( // The tag names and the corresponding category name to add 'سايت' => 'سايت', 'INFO' => 'information', 'search optimization' => 'SEO', ); $post_tags = get_the_tags($post_id); foreach ($post_tags as $tag) { if ($tag_categories[$tag->name] ) { $cat_id = get_cat_ID($tag_categories[$tag->name]); if ($cat_id) { $result = wp_set_post_terms( $post_id, $tags = $cat_id, $taxonomy = 'category', $append = true ); } } } } add_action('publish_post','mam_add_category');How i can solve the problem
i uploaded the function file please help me
the function file: http://www.arista.ir/func.zip
thanksForum: Fixing WordPress
In reply to: How to display most visited postsof a day in categoryno comment?
Forum: Fixing WordPress
In reply to: auto assign category to post by tag.title or word of contentwhere i should enter the tag in the code ?
for example tag “ram”
and where i should specify the ctegory number or name
?Forum: Fixing WordPress
In reply to: auto assign category to post by tag.title or word of contenthello vtxyzzy and thanks for your reply
thats code is very good idea .but plaese explain me that how i can use thats code// Add a category to a post for each of selected tags the post already has. // Modify the $tag_categories array. Use one tag name => one category name function mam_add_category ($post_id = 0) { if (!$post_id) return; $tag_categories = array ( // The tag names and the corresponding category name to add 'info' => 'information', 'INFO' => 'information', 'search optimization' => 'SEO', ); $post_tags = get_the_tags($post_id); foreach ($post_tags as $tag) { if ($tag_categories[$tag->name] ) { $cat_id = get_cat_ID($tag_categories[$tag->name]); if ($cat_id) { $result = wp_set_post_terms( $post_id, $tags = $cat_id, $taxonomy = 'category', $append = true ); } } } } add_action('publish_post','mam_add_category'); ?>thnks
Forum: Fixing WordPress
In reply to: How to display most visited postsof a day in categoryany idea ?
Forum: Themes and Templates
In reply to: function.php errors !!!very nice thanks