![]() |
Simple <php> question / Wordpress
Pretty sure this is simple to do but sent a message to the plugin support and they completely ignored my question and replaced it with their own made up version.
Basically I have a slider plugin (Slider WD) and I was given some PHP code: Code:
<?php wd_slider(1); ?> How would I do this please? |
Looks like you need is_page().. havent tested this, found at stackoverflow:
Code:
<?php if(is_page( 5 ): ?> |
Quote:
|
Can't you just copy the pages template and rename it and upload it to the same template folder then select it in your edit pages post on the right side under page attributes select template.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
https://developer.wordpress.org/refe...tions/is_page/ |
And if you get an error now, I think there must be TWO parentheses before the first colon. Looks like you are not a coder, just trying to help. :)
Code:
<?php if(is_page( 5 )): ?> |
Quote:
No and then ! |
All times are GMT -7. The time now is 09:31 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123