bookespana (@bookespana)

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • //Map bbPress topics to WordPress posts structure.

    foreach($bb_topics as $bb_topic){

    $bb_first_post = $wpdb->get_results(“SELECT post_text FROM bb_posts WHERE post_position = ‘1’ AND topic_id = $bb_topic->topic_id”, ARRAY_A);

    $bb_post->post_author = $bb_topic->topic_poster;

    $bb_post->post_date = $bb_topic->topic_start_time;

    $bb_post->post_content = $bb_first_post[0][post_text];

    $bb_post->post_title = $bb_topic->topic_title;

    $bb_post->post_status = “publish”;

    $bb_post->comment_status = “open”;

    $bb_post->ping_status = $bb_topic->post_id;

    $bb_post->post_name = “forums/topic/”.$bb_topic->topic_slug;

    $bb_post->post_type = “forum_topic”;

    $bb_post->comment_count = $bb_topic->topic_posts-1;

    //add bbPress topic to WordPress posts array.

    $wp_posts[] = $bb_post;

    };

    ?>

    Flamenco Shows In Madrid

    Ballet Flamenco Madrid

    In WordPress, there’s a chance to pick out the template for every page (dropdown on Edit Page and Edit Post pages).
    bbPress forum root, forums, topics and replies are custom post varieties.
    It would be smart to check in bbPress the flexibility to line the default layout for every of those.
    Dropdown (like the one on Edit Page page), whereby the admin will choose the layouts from among the active theme’s layouts shall be ideal.
    (I perceive that if once this the admin decides to alter the theme, he can got to choose the default layouts for bbPress custom posts once more – similar to he has to do therefore for traditional pages and posts

    In reply to: How to disable rss ?

    Open your functions.php located inside your themes folder and add the subsequent code:
    function fb_disable_feed() {
    wp_die( __(‘No feed available,please visit our homepage!’) );
    }

    add_action(‘do_feed’, ‘fb_disable_feed’, 1);
    add_action(‘do_feed_rdf’, ‘fb_disable_feed’, 1);
    add_action(‘do_feed_rss’, ‘fb_disable_feed’, 1);
    add_action(‘do_feed_rss2’, ‘fb_disable_feed’, 1);
    add_action(‘do_feed_atom’, ‘fb_disable_feed’, 1);

    Once you add this code, anytime somebody tries to succeed in your feeds, they’ll see this message: “No feed on the market, please visit our homepage.” you’ll modification the message to suit your wants.

    Display RSS feeds.
    Most webmasters show their feeds as content on their web site. When displaying a feed make sure to use PHP, ASP or HTML so search engines can spider the contents of the feed displayed. If employing a template to show feeds, use header tags to outline the looks of the Channel Title and Item Titles. several search engines weight header tags with a lot of importance.

    Google XML Sitemaps – This plug in generates a sitemap in order that your blog is indexed by search engines. whereas there’s no proof that having a sitemap gets your blog ranked higher, it’s little doubt that the search engines “crawl” to get blogs. Why not provide the search engines a lift in serving to them crawl your web site easier and faster. and it’s free.

Viewing 5 replies - 1 through 5 (of 5 total)