Add HTML Snippet to Wordpress Blog Page? - wordpress

I have recently started working with Wordpress, and I use the HTML Snippets plug-in to fill in the contents of each page. This works well until I hit the blog page. My blog page does not take anything from the page editor, so I can neither paste code snippets nor write anything in the WP page editor field. It only responds to posts. As a result, I am unable to add anything static to my blog page. Also, editing the template post_list file also leads to damaging the template.
How do I go about adding static elements to my blog page?

Essentially it sounds like you're wanting to add a page template to your theme, which you can then assign as your 'Posts' page through the Wordpress admin.
The question itself is rather too broad to answer without an attempt at coding it yourself, but you can read more about it on the codex: http://codex.wordpress.org/Page_Templates#Creating_a_Page_Template

Related

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.

How do I call a plugin in a custom page for wordpress?

So I am trying to do this and I don't know how. I have a wordpress powered website with a plugin called "frontier-post" in it. This plugin makes a new front-end post submission. The way to use it is to put the shortcode "[frontier-post]" in any post in my wordpress page and that page turns into this.
I want to make a custom page for myself, where I can have the content created by this plugin there too. So I do not want it to be a post in my wordpress, but lets say at a corner in the custom page. I have searched and found these but the suggestions there would not work. I am able to include the wordpress so that the custom page has access to posts, etc. but even using this
echo do_shortcode('[frontier-post]');
would not help me. (even if header is included)
These are the similar things i found:
Wordpress/PHP - How to use plugins outside wordpress-powered pages?
Need Help for my Custom Page Template
I would really appreciate it if you could help me with this.
If you are creating a PHP page that isn't going to be rendered inside WordPress, you can't use a Plugin of the WordPress engine to accomplish what you are wanting to build. (As the accepted answer to one of the pages you link to indicates).
Instead, you might be able to use the json-api plugin and have your custom page query it for the data. While it won't render the shortcode, it will give you the raw data to work with.
http://wordpress.org/plugins/json-api/
Edit:
Based on a comment, your do_shortcode should work...just try it without the square brackets.

Displaying full details of blog posts on the homepage of a wordpress theme that does not allow it by default

I am new to Wordpress. I got this template that I want to use for my site. The template link is here. By default this template allows you to put all sorts of plugins on the homepage. Problem is I don't really want to style my blog the way the template comes. What I just want is to have the full details of my blog posts showing on the homepage and then the categories by the side. Does any know of any plugin that I can use to display blog posts full details instead of just lists (with or without thumbnails)
Your homepage should use the file index.php from the theme (located in wp-content/themes/name_of_your_theme). Open it and search for the_excerpt. It should be located in the Loop, as many things related to Posts in Wordpress.
If what you want to display in the homepage is the same thing than when a single post is displayed, then open single.php in the same directory. That's the theme file used when displaying a single post. Search for the_content inside the Loop and see how it's done. You want to do the same in index.php, more or less copypasting or replacing carefully the_excerpt by the_content. Well, it'll be a little harder than that (you've to understand what you remove, replace or copy) but that's the idea.
Relevant documentation in Codex: the_excerpt (esp. the 2nd paragraph) and Template Hierarchy (answers the questions related to which file is called for Homepage, single post, a category, a page, etc)

Iframe implementation for Wordpress

Does anyone know a way to implement an iframe on a WordPress website. Every time I place the code onto the correct page, wordpress strips my code and the iframe breaks.
I was wondering if there was a plugin that allows iframe code to stay intact or if there is some form of shortcode to use.
I have tried:
[iframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
[fixiframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
and installed the "embed iframe" plug-in on my site but none of them seem to work.
I appreciate the help.
You don't need an iframe to post a youtube video, but to answer your questions about iframes in wordpess..
I am not sure what those plugins do. You can create page templates and have iframes in your pages without using any plugins.
Create a new page template and add the iframe in the php code for that page template. More specifically, create a copy of page.php and rename it. In the comments at the beginning of the file, edit the line with the template file name to Template Name: MyPage. Edit the page code and add iframe code where you need it. And select this template (MyPage) as the template for your page in page edit section wp-admin.
You can also add the embed code as meta information to page in wp-admin, and fetch this meta information in the code to display the iframe. In this way, you can use different iframes for different pages with a single template.
Let me know if you need help with this. I will post a complete solution
Why are you using an iframe to load a Youtube video, you should use the embed tag that they show under the video...
I have iframes in my wordpress for all the Facebook/twitter buttons and they work great!

Wordpress Not Publishing Posts To Custom Template

I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the customization I built into this I did not expect the blog part to give me trouble! lol Anyone run into this kind of thing?
Thank you.
The way I usually to it is to have standard setting in reading preferences.
Build my front-page in index.php
Build a template for blog posts
Add a page and assign the blog post template
Of course you then have a kind of placeholder page sitting amongst the other pages, don't really like that. But it works.

Resources