TheDryTwist (@thedrytwist)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • In reply to: bbPress 2.0 Post Sync?

    @thedrytwist

    Member

    Quick follow up. I managed to implement what i was talking about in my previous post. It seems to be working fine for now.

    Within the file loop-single-reply.php i changed <?php bbp_reply_content(); ?> to <?php echo get_field(‘intro’); ?> and it displayed the custom field. The other custom fields also worked (main, links).

    I’m not sure i’ll be able to work out the next step though!

    EDIT: I just realised this doesn’t work, because replies to the topic wouldn’t work. It would use this loop also so replies won’t show. I think i’ll leave it to the experts.

    In reply to: bbPress 2.0 Post Sync?

    @thedrytwist

    Member

    Good to see the discussion going. I’ve slightly got my head around it but i’m going to need a helping hand.

    I’m using a plugin called ‘Advanced Custom Fields’. I’ve created a new group of Custom Fields named ‘Articles’. Within this group i have 3 custom fields (intro, main, links). I then use a rule where this Custom Field Group is related to the edit screen of a Post Type equal to Topic.

    So now when i go to Topics > New these 3 custom fields appear (i’ve made it so the default fields do not appear). I then select the forum “Articles” and post. The next problem is inserting these custom fields into the forum template so they actually appear. I have not looked into this step yet, what files need to be edited etc, but i’m sure it is possible.

    I also have the forums “Reviews”, “Previews”, etc, and these posts will require an entirely different set of Custom Fields. The problem is i cannot use the Post Type equal to Topic because it is already used for the Articles Custom Fields.

    Basically, how would i go about creating Post Types of Topic-Article, Topic-Review, Topic-Preview etc and have the forums functioning correctly? I’m kinda new at all of this so sorry if i don’t explain myself correctly.

    Thanks.

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