Ive custom content type, added by bods, and Ive added a file field, that should save a pdf file from external URL
how to save it programmatically ?
I Know how to save the image but seems that the files have different approach
I am redesigning a website and both are based on WordPress. This is basically a Podcasts website. I am having an issue which is media files upload date in the new website. File Uploading date for Media files on the previous website is different than in the newly created one. I need the same date as of the previous site but I am not being able to do it. I will really appreciate any help, please.
Workaround is to create a post with the same date as the folder you want to upload the image to. Then upload the image from within that post. WP will put it in the matching year/month folder.
https://organicweb.com.au/wordpress/image-wrong-date/
Trying to create a new wordpress theme, when I look for CSS file in the developer tools it doesn't appear, even if I have a file saved as style.css in the same theme folder . As you can imagine the website does not have any stile but the theme preview do display theme name and author (wrote as a comment in the CSS file). Thanks
I'm using wordpress 4.9.6 version it's not showing page template option. I reinstalled wordpress and using default themes and plugins. I don't know the exact reason for this. Please help me out of this. Tell me the reason why it occurs.
Your theme must have template file. The default WordPress themes does not have that by default.
You need to create a new .php file, name it whatever and add this following code in the top:
<?php
/**
* Template Name: your template name
*
*/
One of the easiest way to create a Template, is as follows:
Creating the Template file:
Open up your preferred Text Editor. I would recommend Notepad++ for its 'best of both worlds' feel. It offers a greater range of tools than 'Notepad' whilst not being too overwhelming.
Next, you will need to enter the following code:
<?php
// Template Name: Name of Template.
?>
Then head to File > Save as ... and enter your desired file name. Then within the 'Save as type' dropdown menu, select 'PHP Hypertext Preprocessor file'. This file type will be appended with a series of file extensions, within a set of brackets.
Go ahead and select 'Save'.
Of course, don't forget to enter your relevant Template coding and save as you go along.
Upload to website:
With your Template file completed, you will now be ready to upload this to your website. One of the easiest way to do this, is as follows:
Download FileZilla. If you are unsure of which version to download, stick with 'Download FileZilla Client'.
Once downloaded and installed, open the program. Then login, with your site's credentials. If you are unsure of these, you will need to seek assistance from your hosting provider.
By now, you should see a screen like:
The above image has a lot of blank spaces. If you are logged in, these blank spaces will be populated with various folder and file names etc. Referring to the above image, take take of the contents within the red box. This text bar may be populated. Just enter '/httpdocs/wp-content/themes'. Alternatively, you can scroll through the Folders manually.
All you then need to do, is identify the relevant Theme and drag over the desired template file and drop it into the relevant theme's folder.
When it comes to WordPress themes, you may first want to familiarise yourself with Child Themes. Simply put, if you are not the Theme Author, you will need to create a Child Theme. If you modify the Parent theme, any file modifications will be lost. Whilst this wouldn't be the case, in this instance, you may wish to take this opportunity in understanding Child Themes and implementing said themes now, in preparation for future modifications.
The solution in my case was to add index.php file in theme's root folder.
It appears that adding my theme into Git repository (with Git Desktop) and selecting default .gitignore file of Wordpress incorrectly ignores the index.php file inside theme's root folder, so the file was never uploaded to the server after deploy and WordPress does not recognize the theme as valid one - hence the missing drop-down with template selection.
I bought a theme from tavern and want to use the same theme pictures and everything. But when I install the theme I don't see the same pictures.
The theme that I bought looks like this:
This is how it looks like when I install it:
Fist of all read the portfolio about the theme ... and it's very easy to import all you dummy data in you theme check your theme folder, It must be contain dummy data in xml format. Go in wp-admin dashboard click on tool-> click on import-> now chose wordpress import-> run and install wordpress importer . Now chose your xml file ...> Done
When I quickly did a Google search, I found that Travern WordPress theme is from Theme Forest.
The Travern theme only includes PHP Files, HTML Files, CSS Files and JS Files during purchase and not the image files. If you're still unsure, you can check out the theme's support page and contact the theme author on your query. This should you help you resolve your query.