• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

QUESTION Recurring insert

hml34

New member
Messages
3
Likes
0
Points
1
#1
I hope I can explain clearly the situation
I have three "levels" of pages.: PageLevel1, PageLevel2, PageLevel3

PageLevel1: I have 3 different pages
-- PageLevel1-A
-- PageLevel1-B
-- PageLevel1-C

PageLevel2: should be an insert of
-- Monday as PageLevel1-A
-- Wednesday as PageLevel1-B
-- Friday as PageLevel1-C
and show exactly the same
They could be Pages or Posts

PageLevel3: should be a different page but ADD PageLevel2 at the end of everything

If the week days is a problem, I would like to do it just manually
I mean I would change manually the link on PageLevel2 to the A, B, C options of PageLevel1

Thanks for any suggestion
 

Temyk

Developer & Support
Messages
1,129
Likes
42
Points
48
#2
Hello.

PHP:
$post = get_post('ID');
echo $post->post_content;
This code will allow you to display the content of the page in a snippet. Next, you check the day of the week using the date function and display the text of the page
 

hml34

New member
Messages
3
Likes
0
Points
1
#3
Thank you Temyk
I am going to try
By the way. I am bit dummy on programming
if you can give me some lines for the date function would be nice ;-)
Thanks again
 

hml34

New member
Messages
3
Likes
0
Points
1
#5
thank you for the link I see a lot of options,.
By the way, I test you previoous comment and it works
but it doesn't keep the format
Basically it delete all the line returns and write everything in line
look at my screen dump
http://bit.ly/2XHsSz2

instead of
http://bit.ly/2XM9oJB

Thanks for any suggestion