• Hey Everyone….

    Shauno was a able to write a program that would allow me to recall top voted images to anywhere on my website. The only problem I have is where do I insert the program. He says to Copy and paste into your functions file: the only problem is that I dont know where the functions file is. Then he said paste this code anywhere you want to show your top images: <?php shaunos_awsome_top_images_i_should_really_consider_donating(10); ?> So I ask where in the visual template or the html template. And do I need a special php plugin to recall the function of the program.

    Shauno I know I have been picking your brain so I decided to post so anyone could try and help.

    Thanks

Viewing 15 replies - 16 through 30 (of 51 total)
  • Thread Starter SlickVicENT

    (@slickvicent)

    Ok done… what next

    Thread Starter SlickVicENT

    (@slickvicent)

    sorry… but on a side note… I am having trouble using pastebin.

    I just used the pastebin 5 minutes ago and it worked fine. I’m not sure why you are having trouble.

    Now show me the single.php where you pasted this part: <?php shaunos_awsome_top_images_i_should_really_consider_donating(10); ?> Please try the pastebin again. You don’t even need to register for an account. Just copy the URL after you submit.

    Thread Starter SlickVicENT

    (@slickvicent)

    Ok heres the link and I have yet to put the call function. Where should I put it

    https://pastebin.com/2MJC9Nrx

    <!-- End code to un-comment -->
    	<?php /* The Loop — with comments!?>
    // put it right here
    <?php shaunos_awsome_top_images_i_should_really_consider_donating(10); ?>
    	<?php while ( have_posts() ) : the_post() ?>

    That may be ugly but it will tell you if things are working.

    Thread Starter SlickVicENT

    (@slickvicent)

    Now to call the function where should I put???

    Thread Starter SlickVicENT

    (@slickvicent)

    Btw this is what I got trying to update your last step

    Your attempt to edit this theme file: “/home/content/99/7381199/html/wp-content/themes/photocrati-theme/photocrati-theme/index.phpPhotocrati Theme” has failed.

    Please try again.

    Don’t use the theme editor built into WordPress. Download the file, edit it in a text editor– not a Word Processor– and then upload the file again.

    Thread Starter SlickVicENT

    (@slickvicent)

    Ok it worked with textedit….

    Next step to call function to my website. What do I need to do??

    Thread Starter SlickVicENT

    (@slickvicent)

    fyi I showed you the index.php file before…. shucks!!!!

    here is single.php file

    https://pastebin.com/9xHNfKsa

    Put that code in somewhere obvious…

    <div id="content-sm"><!-- Important!! If you remove the sidebar change the ID of this DIV to content -->
    // like here #################
    <?php shaunos_awsome_top_images_i_should_really_consider_donating(10); ?>
    // ###########################
    <?php the_post(); ?>

    … and see if anything happens.

    Thread Starter SlickVicENT

    (@slickvicent)

    Done!

    so now how do I call the function to a specific page

    Thread Starter SlickVicENT

    (@slickvicent)

    I inserted
    < ?php shaunos_Awsome_top_images_i_should_really_consider_donating(10); ?>

    on my home page via html and the exact same thing inserted is visible on the home page. Not the actual function

    You have a space in the php opening tag. Look at what I posted. It is <?php, not < ?php.

    Thread Starter SlickVicENT

    (@slickvicent)

    ok once I fix that how would it be visible on my website??

    Btw you did want me to put call function in single.php file right???

Viewing 15 replies - 16 through 30 (of 51 total)
  • The topic ‘Where to insert program and how to recall’ is closed to new replies.