wp-voting & montezuma
I've had mixed results using php-exec plugins to get wp-voting to show up on the index.php and single.php to work.
I was able to get the voting to work when I edited comments.php. The problem with php-exec is two fold. One, My site allows users to submit stories, so I don't want registered users to be able to write php into the post. Second, php exec as a widget shows up on homepages/posts and I don't want users to vote on those sites. Is there anything else I could do to ensure that this works. Adding <?php if(function_exists('wpv_voting_display_vote')) wpv_voting_display_vote(get_the_ID()); ?> to single.php or index.php does not work from admin or from an edited file through ftp. Thanks. |
use one of the php widgets like 'php code widget' it just runs php in the widget. Then you could also use 'widget logic' to control when teh other widget shows up.
|
Thank you for your quick response. That is certainly a solution, however if I want the voting to be position next to the title and not in a widget, why does editing index.php or single.php not work like editing comments.php? I assume because comments.php is in the root and index.php and single.php are nested in the child theme. As a matter of education and knowledge could you point me to some resource or perhaps what to google, so that the theme will run new php code from within these plugins? Thank you.
|
Are you editing the physical or virtual templetes?
|
Quote:
Quote:
|
I much prefer to edit the file templates and not the virtual. Most importantly because for whatever reason I can't use copy paste. However, I've made edits using both, but only had luck using the virtual.
That's good advice on front-page.php. Thank you very much, for the advice. I will try this as soon as I can. |
If you edit other than the virtual templates they will not survive a theme upgrade. This theme is build with the idea of just editing the virtual templates.
How are you trying to copy and paste? It works fine for me. |
All times are GMT -6. The time now is 10:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.