CPT output random posts
-
Hi,
I have created custom posts type (in this case: Doctors). Created custom template to display it on specific slug(/doctors). Everything is working.
But I have idea to display random 3 doctors on home page (index.php)
I created shortcode, it’s working, random doctors appear on home page, but only in list(no css style).
QUESTION: How can I make those random posts same on index.php as it is on /doctors. Because on index.php I lose all CSS style for doctor box.
I could do it, but I have to use Visual Composer, and I don’t know how.
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘CPT output random posts’ is closed to new replies.