• Resolved Paul Goethe

    (@paul-goethe)


    Iam into a loop for running all post with one concrete category.
    I have this:
    $postID = get_the_ID();

    (My ID’s are 50, 60 & 70)But if I print ‘$postID’ I obtain this values:
    50, 5060 , 506070

    I need obtain 50, 60 & 70. Separatelly.

    I would need create an loop for can print this values separetly. For example like this:
    [0]= 50
    [1]= 60
    [2]= 70

    Do you understand me?
    Im really gratefully for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘running a loop’ is closed to new replies.