You need to give the full path to your theme files. To get the URL of your theme, use the WordPress function bloginfo( 'template_directory' );
so at a minimum you would need:
<script src="https://wordpress.stackexchange.com/questions/18828/<?php bloginfo("template_directory' ) ?>/jquery.js" type="text/javascript"></script>
However, scripts / styles should really be “enqueued” using wp_enqueue_script();
(see http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
I would recommend taking a look at some other themes to see how they include thetheme files like this. Also the Codex page on Theme Development is a good place to start: http://codex.wordpress.org/Theme_Development
Related Posts:
- show hide image script after 4 seconds [closed]
- Set default image link target in Gutenberg image block
- Graphing libraries for WordPress [closed]
- 3.5 media.editor: what is the event listener for choosing an image?
- Update an image block style programatically
- Howto use WP built in Thickbox for images?
- Image modification
- Landing Page with HTML CSS JS and Images on wordpress
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- Images names not inserting in WordPress Database from Dynamic Add / Remove fields
- js alert in add_filter function for image_send_to_editor
- WordPress Javascript displaying an image Question
- Display images from JS?
- 3.5.x Theme Customize: Handling Custom Control Requests
- Script not working in WordPress [duplicate]
- Function to get URL of original uploaded image – full size
- WordPress crop tool greyed out
- Limit image resolution on upload
- get_the_post_thumbnail_url with an unregistered size
- How to wrap WordPress image captions inside H2, H3 tags?
- How to crop image from image src in a specific size
- Resizing only featured images while uploading
- Adding upload button in metabox
- How do i upload an image and return the image id?
- How can I serve different images depending on screen size with wordpress
- Setting up a gallery with images and a zip download
- When inserting images into posts auto add a wrapping div
- Is it possible to prevent users from uploading small images?
- how to base64 encode images in wordpress template
- get_children – wp_get_attachment_image
- How to add an image for unit testing?
- Setup A Default Featured Image
- Find posts without featured image? [duplicate]
- How do I add a featured image to a single post page?
- Custom image size not regenerating when image editted
- How can I autopopulate titles in the media library?
- Image still linked as attachment to page even though it has been deleted
- Disable wordpress image sizes generation
- Is 700,00 jpgs too many for a WordPress site.?
- Change the RSS feed image
- Best option for photo/gallery handling?
- Featured image (responsive) above content is too small after update to WordPress 4.4
- How to show only posts with images?
- How Do I Delete All The Images from WordPress
- Consolidating two websites into one, but migrated images not appearing in Image Library
- Upload .doc to blog
- Is my code is right to make image shortcode
- How can I insert an image map into a WordPress blog post?
- image in my post disappeared after I upload website to remote server
- Isolating images in uploads not used/recognised by WordPress
- Add width & height attributes to Gutenberg’s image output?
- images not showing after transfer
- WordPress 4.1 header image problem
- force feed readers to pick atom version
- Is there any way to Integrate WordPress with Imgur for Image Hosting
- Don’t show images inserted into content
- Add custom metabox to media library images
- Autosort uploads in galleries by filename
- How to display original unmodified thumbnail
- One picture belonging different galleries?
- Hide Featured Image box – isn’t working?
- Using a .pdf file as a page in wordpress
- WordPress Attachments with old images
- How to display image in mail header using wp_mail()
- a: hover issue with image issues [closed]
- Redirect Image Url to a page via htaccess
- How does wordpress name resized image copies?
- How to remove “Image Information” and “post date/author” from a media page?
- Media Editor uppercase extensions to lowercase
- How to change picture size
- Issue with LazyLoad, sometimes my pictures aren’t showing
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Initializing the cropper for image uploads
- How to bulk change media item’s link?
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- Custom Image Widget
- How to use default image as featured image by implement some code in function.php
- attachment_fields_to_save first parameter is null
- Register an embed handler for self hosted images
- Dashboard Create Gallery missing
- Get image thumbnail size urls in media library
- WordPress is showing blank lines instead of images
- I cannot upload images to post or the media library in wordpress
- Change header image size
- How to disable post-thumbnail from generation?
- WordPress Shortcode to display featured images only
- all images of past post messed up after changing theme
- Show WordPress Image Title Under Custom Portfolio Image
- Where is this folder [closed]
- Different image heights for different resolutions without distortion
- Lots of attachments is causing slow load
- Image editor not working correctly
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Issues with the excerpt (wordcount/HTML/images)
- Resizing to bigger proportions as original not working
- Admin bar stats widget plugin image broken
- Adding social share buttons for individual images on a web page
- How to get the attribues (alt and title) of an image import with ACF [closed]
- Display first image’s caption
- The uploaded images are only full-size (original)