erfan_atp
Forum Replies Created
-
Ok, Thank you.
I want to remove something from user dashboard. Can I?
Forum: Networking WordPress
In reply to: How to set default widgets in multisiteThank you. But No.. 🙁
Thanks. It works.
Forum: Networking WordPress
In reply to: How to set default widgets in multisiteAs I know “sidebar.php” helps to add widget area in our sidebar. But I need to change default widgets and keep it configurable in future for other users. I can put specific code in my sidebar that prevent future changes, so I don’t like it. Can you help me more?
Thank You.Forum: Networking WordPress
In reply to: How to set default widgets in multisiteThank You. But I need to do it free.
Forum: Fixing WordPress
In reply to: How to pass a variable by get method in self page?tnx Christian1012, Done!
Forum: Fixing WordPress
In reply to: How to pass a variable by get method in self page?summary of my code:
hereForum: Fixing WordPress
In reply to: How to pass a variable by get method in self page?No, I just return a true value to my form to show to user, any way
Forum: Fixing WordPress
In reply to: How to pass a variable by get method in self page?sure!!! I used it before, in a php code. but in wordpress it doesn’t work.
My Main problem:
I have a form in a custom template and when it submitted, I want to show to user : ‘Your request submited’.Forum: Fixing WordPress
In reply to: How to pass a variable by get method in self page?no! I use header(“location:/index?type=true”) but it doesn’t appear in my url. it doesn’t compile header function.
Forum: Fixing WordPress
In reply to: How to send mail on publish a specific categoryI used this:
function post_published( $new_status, $old_status, $post ) { if ( $old_status != 'publish' && $new_status == 'publish' ) { // Post is published $category = array('3','4','5','6','7','8'); // Category ID, name or slug. You can use an array to pass more than one Category if ( !in_category ( $category, $post ) ) // If the post is not in your required category/s return; wp_mail( $to, $subject, $message ); // The email address you wish to send to } } add_action( 'transition_post_status', 'post_published', 10, 3 );It works!
Thank You hiphopinenglish !Forum: Fixing WordPress
In reply to: How to send mail on publish a specific categorytnx. but i want to send mail when it published, not when it’s state is ‘pending’.
Forum: Themes and Templates
In reply to: show comment to useroh no! this is my fault excuse me stephencottontail. I putted this code in comments.php
<?php if (get_comments_number() != 0) { ?> <ol class="commentlist"> <p><?php wp_list_comments('type=comment&callback=mytheme_comment'); ?></p> </ol> <?php } ?>and all of problem are depended on it.
sorry about that, good luck.Forum: Themes and Templates
In reply to: show comment to usertnx. I publish a new post by admin. then i see the post as a guest. then i write a comment for this post. but doesn’t show my comment, until admin approve my comment. when at least one comment approve i can write another comment and see the (Your comment is awaiting moderation.) but in first comment, my comment and this sentence in parenthesis does’t show.