...because I am having problems with it. The Wordpress Creatif index page is not rendering correctly. There is a div named “block_content” that has no style rules at all or is even mentioned in the CSS file. I think that may be the problem as it wraps the main content area and sidebar, both of which are flush left in the browser, when they should be centered.
I have found an error in the code. In index.php there is this block of php:
<? if ($post->ID != $featured_ID) { ?>
On this line, the “php” is missing after the first question mark.
When the conditional ends, the authors have this code:
<? } ?>
Again, the “php” is missing after the question mark. This has nothing to do with my previous post, but is related to another error I was getting with the php code showing up in the browser in the post blocks.
It also caused the “featured post” to show up twice.
When I added the “php” after the question marks, the problem vanished and I no longer saw code on the page in the browser and the featured post only appeared once, where it should be at the top of the page.
I hope this helps someone else if they encounter the same problem.
- Bought between 10 and 49 items
- Has been a member for 4-5 years
Thanks so much, I have been trying to figure this issue out for over 2 hours now. Even the updated version of Rockstar wordpress does not update this error.
bopjo1 said
I have found an error in the code. In index.php there is this block of php:<? if ($post->ID != $featured_ID) { ?>
On this line, the “php” is missing after the first question mark.
When the conditional ends, the authors have this code:
<? } ?>
Again, the “php” is missing after the question mark. This has nothing to do with my previous post, but is related to another error I was getting with the php code showing up in the browser in the post blocks.
It also caused the “featured post” to show up twice.
When I added the “php” after the question marks, the problem vanished and I no longer saw code on the page in the browser and the featured post only appeared once, where it should be at the top of the page.
I hope this helps someone else if they encounter the same problem.
<? was used in older versions of php, same as <?= and other thingies 
I corrected that code in my copy as well, thanks
Al
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
this is one of the basic codding rejection reason for themes…... that is not a error. its just another practice that dose not work on all systems.
duotive said
this is one of the basic codding rejection reason for themes…... that is not a error. its just another practice that dose not work on all systems.
it isn’t system related or practice, it depends on php settings (php.ini or other), you can enable module for short tag
ewizz said
duotive saidit isn’t system related or practice, it depends on php settings (php.ini or other), you can enable module for short tag
this is one of the basic codding rejection reason for themes…... that is not a error. its just another practice that dose not work on all systems.
Correct. I find them easier to use (less writing, especially the echo), but i use them only on client projects if they’re enabled, they shouldn’t be used on themes since you can’t know if the customer will have them enabled.
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
did not know about php.ini but i saw that in some systems this is not enabled…
