jamespiggot
Forum Replies Created
-
Forum: Plugins
In reply to: [Latest News] [Plugin: Latest News] Set has_archive to trueI have been working away from WordPress for a while but am now back and will make an effort to update this plugin as it clearly requires some work to make it fully usable. I will look into adding the “has_archive” flag as you request above. Will also add support for showing the publication date and other metadata.
There is a explanation at the plugin site at:
Forum: Plugins
In reply to: Latest News plugin – Trouble with outputHello wmguk,
I am the author of this plugin so would like to help you to get it working. Can you post the code of the page template that is causing the problem? Please post the code in wordpress.pastebin.com to avoid annoying the moderators here in the forums.
Regards,
JamesForum: Fixing WordPress
In reply to: how do i add latest news plugin to a pageHi there,
Sorry this is my fault, I will update the instructions of how to use this plugin, but for now please see the instructions below (which are an example, please modify to suit your requirements).
Create a new file called news.php in your template folder. Add the contents from the pastebin below to this file and save it.
Create a page called Latest News and set the Template to news.
The new page should then display your Latest News posts.
Forum: Themes and Templates
In reply to: Move Sidebar from Right to Left?Hi PiManIII,
As esmi said above you should ask this question of the theme designer.
You can set move the sidebar to the left with this theme but it will look strange. This is because the theme uses a background image to color the sidebar, and that doesn’t move across leaving the whole thing looking odd.
So your best bet is to post the question to the theme authors.
Regards,
JamesForum: Themes and Templates
In reply to: Move Sidebar from Right to Left?As Esmi says above this is style dependent, but if you are asking about the default twentyten theme for WordPress 3.x then you can switch the sidebar from right to left by changing the following lines in the style.css file that is in the wp-content/themes/twentyten folder.
#primary, #secondary { float: left; overflow: hidden; width: 35%; clear: none; padding: 16px 0 0 16px; } #secondary { clear: right; } #container { float: right; margin: 0; width: 60%; }That should be enough to switch them around always assuming you are using the default theme? If you are using a particular theme then you can ask the question as theme-dependent for that particular theme.
Forum: Plugins
In reply to: Website News Writing PluginWell, for what it’s worth my approach is slightly different. I have used a custom post type rather than using a specific category. The downside is this requires more code to configure the custom post type while the upside is it makes the template simpler as there is no need to exclude posts from the main loop.
I have also used WP_query instead of get_posts to output the custom loop. This was to avoid having to filter out the post metadata (author/comments and so on) as I think that is included if you use get_posts.
Forum: Plugins
In reply to: Website News Writing PluginHi Andrew,
I have developed Latest News function for a website but haven’t made it into a plugin. If you don’t find anything out there that can do the job let me know. I don’t think it would be much work to make my code into a plugin and it would be an interesting challenge.
Regards,
JamesForum: Fixing WordPress
In reply to: help getting featured image from custom post typeWhat code are you using to output the featured image, are you using the_post_thumbnail?
<?php the_post_thumbnail();?>And what html gets generated by WordPress? Have you checked that the image with the correct path, name and size exists for the actual image tag that gets output on your website?
Forum: Themes and Templates
In reply to: Problem with table alignment in posts for TwentyTen themeHi Joe,
You will need to edit your style.css file in the \wp-content\themes\twentyten folder. Then find the line below and reduce the padding, it currently is set to 6 pixels top and bottom and 24 pixels left and right of each cell.
#content tr td { border-top: 1px solid #E7E7E7; padding: 6px 24px; }I have changed the values for the test page to make the cells align better, have a look, you may may need to play around with the values to get the effect you need.
Forum: Themes and Templates
In reply to: Problem with table alignment in posts for TwentyTen themeYou can do this by using valign=”top” in the table cells.
Forum: Themes and Templates
In reply to: Problem with table alignment in posts for TwentyTen themeI think that is a separate problem, you should be able to fix that by editing the style.css file and removing the
vertical-align: baselineline from the global reset section. Have another look at the test page which now shows the effect of this change.Forum: Themes and Templates
In reply to: Problem with table alignment in posts for TwentyTen themeYou haven’t posted a link so it is difficult for people to see how your html interacts with the WordPress stylesheets. I didn’t spot the alignnone in your code.
The problem is caused by the width of your table which is set at 590px, if you have a look at this test page where I removed the width completely then you can see it works more or less correctly.
Sorry, posted this without realising Mihai had pointed out the same solution.
Forum: Themes and Templates
In reply to: wp_query ordered by custom field valueHave you tried using orderby=meta_value together with metakey=year
This will be a alpha rather than numeric sort but with your data values of just year it should work correctly.
There is some documentation for this in the Codex under query_posts which explains somewhat what is required.
Forum: Themes and Templates
In reply to: Good Theme to turn WordPress into CMSLooking at the layout of gambling-guru I would say that is relatively straightforward.
They have header and two layer menus at the top.
In the content they start with larger image which is linked to the specific page/post. That is not hard to do with custom fields or maybe using the featured image – in the content rather than the header?
Then a custom loop with a query that selects for a particular category of posts together with a date or other selection to give Today’s Betting Specials. The images are post thumbnails.
Then various menus and links in the footer and a sidebar on the right hand side.
I am not saying it’s out of the box but I don’t imagine it would be much less work using drupal or joomla to achieve that layout.
@esmi – that is worrying as I’ve used home.php, what are the problems do you know? – sorry, asked too soon, you posted an answer to my question before I asked it!