ignivamanish / wordpress-job-manager

Automatically exported from code.google.com/p/wordpress-job-manager
0 stars 0 forks source link

Feature: Using WYSIWYG editor #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some users would like to use WYSIWYG editors like the build in TinyMCE for
the texts.

Original issue reported on code.google.com by i...@jochendamm.eu on 16 Jan 2010 at 1:55

GoogleCodeExporter commented 8 years ago
I'm planning on adding this in version 0.6.

Original comment by pendergast.gary on 17 Jan 2010 at 1:08

GoogleCodeExporter commented 8 years ago

Original comment by pendergast.gary on 22 Jan 2010 at 9:28

GoogleCodeExporter commented 8 years ago
very interesting article for custom_post_type.

http://codex.wordpress.org/Function_Reference/register_post_type
http://wpengineer.com/impressions-of-custom-post-type/

Original comment by palan...@gmail.com on 16 Feb 2010 at 9:29

GoogleCodeExporter commented 8 years ago
Yep, I'm already using custom post types, I've tested that they play nicely 
with 3.0's 
custom post type interface. (They do, it should be a fairly simple upgrade.)

I'll push this issue to a later version, after 3.0 is released.

Original comment by pendergast.gary on 16 Feb 2010 at 9:45

GoogleCodeExporter commented 8 years ago
I found the following TIPS, shall i use for my installation.
<?php
//add jobs to feed & home page
function my_get_jobs( $query ) {
    if ( is_home() | is_feed)
        $query->set( 'post_type', array( 'post', 'page', 'job_man_jobs') );
    return $query;
}
add_filter( 'pre_get_posts', 'my_get_jobs' );

//adding default content to editor
function my_editor_content( $content ) {
    $content = "This is some custom content I'm adding to the post editor because I hate
re-typing it.";
    return $content;
}
add_filter( 'default_content', 'my_editor_content' );
?>

Original comment by palan...@gmail.com on 16 Feb 2010 at 1:46

GoogleCodeExporter commented 8 years ago
The feed addition should play nicely, though note that the post_type is 
'jobman_job', 
not 'job_man_jobs'.

The default_content filter won't do anything until I change Job Manager to use 
the 
custom post type interface, after WordPress 3.0 is released.

Original comment by pendergast.gary on 16 Feb 2010 at 1:51

GoogleCodeExporter commented 8 years ago

Original comment by pendergast.gary on 4 Mar 2010 at 12:59

GoogleCodeExporter commented 8 years ago
Found an easy way to do this, I'll add it in 0.7.1.

I'll still look at switching to the custom post type interface in WP3.

Original comment by pendergast.gary on 20 Apr 2010 at 10:34