using comment on wordpress - wordpress

I'm creating a webpage using wordpress. I wanna insert some element in the form as hidden but the comment tag is not working. the wordpress is putting the comment tag within a 'p' tag.I used all methods of commenting.It is not working.
Can anyone tell me how to insert comments in a webpage using wordpress?
thanks i advance.

I take it you are trying to build a form using the add/edit page screen in wp-admin i.e. wp-admin/post-new.php?post_type=page? If so, you might never succeed in your endeavour, but I would give it a try using tinymce-advanced plugin, as you can turn a lot of the filtering of your source code off, and this might solve the problem. Try it, if not let me know and I will tell you how to manually add functionality to stop Wordpress from messing with html code in wp-admin text editor.

Related

Website content like " [sc_countdown year=”2019″ month=”1″ day=”1″ hour=”0″ minute=”0″

Why a website is showing the content like:
[sc_countdown year=”2019″ month=”1″ day=”1″ hour=”0″ minute=”0″ bg_color=”#” num_color=”#ffffff” show_second=”1″ css_animation=”” animation_delay=””]
The whole page is showing content like this. It is based on WordPress and using a theme. Does anyone know why is this and how to fix it?
This is a WordPress shortcode. My guess is there is some sort of countdown plugin that you need to install in order for this content to display correctly. Or maybe the plugin you're trying to use is deprecated, so the shortcode isn't working anymore, and is instead just displaying as plain text on your page.
There are plenty of other countdown plugins you can install that will hopefully work for you.

how to add a function if only a certain template is being used

I'm building a site for a networking group and they want to show if a category is open for someone to join.
I'm not sure if this is possible but I need to add a style to the navigation that if a category is open it will show "open" next to it when you hover over it. I know I can change it but the problem is it needs to be user friendly so they can change it themselves. So I'm trying to figure out a way to make it as easy for them as possible.
So far I came up with the idea of creating a different page template for them to choose and created a hover style for that template. The problem is you have to be on that template page and it shows when you hover over all of them even if it's not open.
Is there a way to add a function for a page only if it's using a certain template?
Here is a link to a page that is using the template I added - http://pt6-dev.info/categories/auto-truck-repairs/
I know some of the basics of php and javascript so any help or ideas would be appreciated!
You can just add it into the PHP file out with the PHP tags using the < script > element

How to edit Wordpress code for a specific page?

I feel kind of stupid asking this but... I have three pages on my website. There is one of them I want to edit. How do I access the code of this page? I need to change the size of a Google Maps I have embedded on the page.
Go edit this page, in the right sidebar look for Template in page attributes box. This page should be using a template, go to your theme folder and look for a php file with the similar name, when you open, it should have the exact template name in the header, that's where you can edit the code of this page assuming that it use a template.
I managed to solve the problem by playing around with some divs in the css.

Why won't the WordPress editor make changes to html page with custom template?

I had created a custom page-Contact.php file to use as the template for the contact page of my website.
When adding short code (or any text at all) to the WordPress editor in my WordPress admin section, no updates were being made to the html after inspection of the source.
I solved my own problem, but it was a little tough for me as a beginner to find the answer so I'll post it again in hopes of helping someone else.
Add the loop!
All pages need a loop in order to display any info/changes from the visual editor.

“Custom Field Template” plugin - first MULTIPLE FIELD FIELDSET disappears on save

I am using Custom Field Template plugin for my WordPress project. I have multiple field fieldset which allows to upload a photo and add title from the back end.
The problem: when ever I update the post first fieldset disappears and it keeps doing that until only one field set is left.
I would really appreciate some wise advice from you guys cause this issue is making me sick right now.
Plugin I use: http://wordpress.org/extend/plugins/custom-field-template/
Functions.php file and template file is built according to this tutorial: http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/
I found the solution to this. Since I have seen couple more people with a similar issues I think I can help.
So If you are using CFT plugin for wordpress and your multy fieldsets gets wiped out if you add more than 2 of them just transfer them to another template and it works perfectly well...

Resources