문제

I'm trying to use a custom meta box with a checkbox to display content (an alert) on the front page. The site I'm making is a online video solution for a small firm where they have occasional live broadcasting. When they have live broadcasting I would like the user to be able to use a checkbox to display some content on the front page to let the readers know that they are sending live.

Does anyone know if/how this is possible? I'm using regular posts to add a live page if that is relevant.

도움이 되었습니까?

해결책

Just in case anyone else is having the same issue as me I thought I would post my solution.

I made a custom post type live-tv so that the user can add the live broadcasting there. When a post is published I have a loop on the front page that gets only one post (they only have one live broadcast at the time) and then style the front end as I want.

I understand that this was a difficult question to wrap your minds around and I'm terrible at explaining. But thanks for trying to help.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top