WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Widget
[resolved] Possible conflict between Custom Post Widget and WP Job Board (2 posts)

  1. mviens
    Member
    Posted 3 years ago #

    Hello - great plug-in!

    I just updated a client's site to 3.1.2 and had a new section (Locums) in development using the WP Job Board Plugin and am now experiencing a strange phenomenon: the main content is being repeated in my footer on the Job Board pages.

    I added the following to my template/function.php so I could test modifying the footer for just the Locum (Job Board) pages and not affect the “live” site:
    // Area 9 TEST
    register_sidebar( array (
    'name' => 'Locum Footer Content',
    'id' => 'locum_footer_widget_area',
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => "",
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );

    I then logged in to WP Admin, and in Appearance / Widgets, I added various widgets to the new Locum Footer Content. If I use something like “Text – Arbitrary text of HTML”, it works fine and the text I enter is displayed in the footer as expected without the repeated page content. When I use “Content Block – Displays custom post content in a widget”, regardless of what content block I choose for “Content Block to Display”, I get the repeated page content in the footer: http://www.vancouverfamilypractice.ca/temp/locums

    Based on this, I would assume that there is some conflict between Content Block Widget and WP Job Board. I have contacted Greg, the developer of WP Job Board, and thought I would follow up with you as well.

    Any insight/recommendations would be greatly appreciated - I am trying to get the new section posted ASAP. If I can't resolve it quickly, then I may just opt to not have any content in the Footer on these specific pages.

    Michael

    http://wordpress.org/extend/plugins/custom-post-widget/

  2. Johan van der Wijk
    Member
    Plugin Author

    Posted 3 years ago #

    Because WP Job Board is a paid plugin I cannot test this myself. I suspect the issue is caused by the fact that the job board content is automatically added to the post via a filter.

    It should be quite straightforward to stop it from adding the content to the custom post type named content_block but as I don't have the plugin code I unfortunately cannot be more specific.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic