Joseph G.
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Jquery Activity Stream Widget] repliesThe sidebar of your buddypress website must use the standard wordpress widget markup. Such us:
<ul class="widget"> <li>Widget 1</li> <li>Widget 2</li> </ul>Pelase check if your theme supports this. Thank you.
Weird.. Please try to download the same plugin again.
Thank you.Forum: Developing with WordPress
In reply to: Sending users email on post publish<?php
function send_email(){
$to = “[email protected]”;
$subject = “Hi!”;
$body = “Hi,\n\nHow are you?”;
if (mail($to, $subject, $body)) {
echo(“<p>Message successfully sent!</p>”);
} else {
echo(“<p>Message delivery failed…</p>”);
}
}add_action(‘publish_post’,’send_email()’);
?>HAPPY KODING!!! keke~
Forum: Fixing WordPress
In reply to: Featured Image Not Displaying CorrectlyWordPress defines a loop something like this:
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post();?>
<?php the_title() ?>// this is for title
<?php the_post_thumbnail() ?
//which you’ve defined earlier in yout theme’s functions.php
<?php endwhile; ?>
<?php endif; ?>Forum: Networking WordPress
In reply to: Do WordPress or Buddy Press Have this plugin?Resolved by creating custom widget… Thanks Ipstenu. You’re always their in times of trouble… ^&^.. oink2..keke~
Forum: Plugins
In reply to: Hook into a pluginYou can hook into any functions as long as it is supported though 🙂
Forum: Plugins
In reply to: Hook into a plugin//example
function hello_world(){
echo ‘Hi World!’;
}
add_action(‘the_post’,’hello_world’);//where the ‘the_post’ is the hook and the ‘hello_world’ is the function to be executed.
Forum: Networking WordPress
In reply to: Do WordPress or Buddy Press Have this plugin?First of all, thank you for the response . But I need to show it on every post which has the picture of the Author.
Forum: Networking WordPress
In reply to: Hi guys. Want to know if this is possible?HEhe.. Done. i have implemented a plugin and planning to publish it lol… Anyway thanks for helping guys… Love this community
Forum: Networking WordPress
In reply to: Hi guys. Want to know if this is possible?yeap… with multiple separate admin areas.. different themes. have their own categories as well.. under the global category. sounds bit too complicated? hmm
Forum: Networking WordPress
In reply to: Hi guys. Want to know if this is possible?My client needs a multisite becuz they must have multiple blog. I’ll just developed something could admin manually add the category name and the link to it. SOunds manual yet easier.. Thank you he advice.. ^^
Forum: Fixing WordPress
In reply to: best chmod settings755 for folders/ directory
644 for files.Forum: Fixing WordPress
In reply to: Featured Image Not Displaying CorrectlyIf you want to be specific then try this code. Put this in your theme’s functions.php
add_theme_support( ‘post-thumbnails’ ); // Let wordpress knows that your theme supports post-thumbnails
set_post_thumbnail_size( 50, 50, true ); //Set default image size for every thumbnails you select and its 50px by 50px;
add_image_size( ‘single-post-thumbnail’, 400, 9999 ); //your Thumbnail size
=========== and in the loop add this code
the_post_thumbnail() //for default thumbnail size
the_post_thumbnail(‘single-post-thumbnail’) //for custom sizes you defined at the functions.phpForum: Hacks
In reply to: Simple $wpdb-> questiondon’t forget to initialize the $wpdb as a global variable…
Forum: Hacks
In reply to: Template file in plugin?Yes, you can make wordpress custom page template… then write a functions that will execute your plugin…