-3

I am new in wordpress. I want to show child post from its parent.like

.parent category 1

  • child1 of parent 1 and 3 post from it (not other child post)
  • child2 of parent 1 and 3 post from it (not other child post)
  • child3 of parent 1 and 3 post from it (not other child post)

how can i do that?

closed as off-topic by Michael, Nathan Johnson, Jacob Peattie, EAMann Feb 15 '18 at 15:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Why are you inserting some CSS rules next to HTML? That doesn‘t work. – swissspidy Feb 7 '18 at 18:38
  • please give me a solution – Arpan Feb 7 '18 at 18:39
2

Assuming this is in a post or page editor using the "text" tab, you need to wrap the CSS in tags. So:

<style>
.section-list-item:nth-child(3n) {
padding: 1.87em 0em 1.25em 0em;
}
</style> 

<p> this is working in WordPress, I have solved it</p>

Not the answer you're looking for? Browse other questions tagged or ask your own question.