Skip to content

Tag: loops

Wrong author ID output from elementor module

I create a module for elementor. I need to display the author name, choosen from the elementor admin control. I have 4 administrator. They show up correctly on control panel: admin (ID=0.) Jhon Doe (ID=1.) Jeane Doe (ID=3.) Mary Doe (ID=5.) The code for Elementor admin panel: When I choose Jeane Doe from Elem…

Attempting something new in WP. Issue resetting WP loop

Im working in WP and basically what I’ve got set up is some logic to create a separate carousel for each category of my blog. For each carousel im displaying the top viewed posts for each category. Each Item in the carousel has a post thumbnail, author name and author avatar. My problem(if you scroll do…

PHP exceeding memory allocation in nested loops

I am parsing a string. If it meets a certain criteria, I want to append the new character to another substring until it stops meeting that criteria, and / or the end of the string. The code is basically as follows: The error that follows is: PHP message: PHP Fatal error: Allowed memory size of 805306368 bytes…

How to get array from list

I have a problem for my program. This my script: and this is my result result page I want to replace the words “count” with the sum of each column in the same row. and my question, how I can add all column in one rows. example : row 1 = 1 + 0.5 + 0,33 + 0.25 = 2,08