kymac
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Web page needs to select the most recent postSteve, I can’t tell by looking at the page, but it may be that the posts in question are marked ‘sticky’ to keep them on the home page.
If you are running WP 2.8.+, go to Posts->Edit in the Dashboard, and if the title of the post shows ‘-Sticky’, you can Quick Edit the post and clear the ‘Make this post sticky’ checkbox.
Forum: Fixing WordPress
In reply to: Have Page display content of a categoryPaladin, I had a similar requirement for my site: https://bluegrassmiataclub.com. See the ‘Ads and More’->’Good Roads’ topic for examples.
I could not find a plugin to do this, so I coded a special template for the pages. It uses a custom field, category-to-show, to specify the category for the page and restricts the display to posts in that category.
One other problem I found was that when an individual post was opened, the ‘Next Post’ and ‘Previous Post’ links did not stay in category, so I had to write a custom single.php file for that.
I know you did not want to mess with php, but if you want, I will be glad to share the code with you (you may need to modify it some). Just send me an email using the About->Contact Us form on the site above and select ‘Mac McDonald’.
Forum: Fixing WordPress
In reply to: How to have a featured-article-image on the frontpageDoes the imgboard field contain just the name of the image file? If so, then you will need to create the full path to the image.
Check the source code of your generated page to make sure the
<img
tag is generated properly.To put in the image on only those pages with the custom field, enclose your
<li ...
in<?php if ($thumbnail) ...
.Forum: Fixing WordPress
In reply to: How to get owner to approve comments without using backendAlso check out https://redlettersstudio.com/wordpress-custom-admin-branding/. This says it lets you change the header of the Admin page so it can look like the site header.
Forum: Fixing WordPress
In reply to: How to have a featured-article-image on the frontpageWhy are you assigning get_post_meta to $thumbnail, but echoing $imgboard? Is that what you really intended?
Forum: Fixing WordPress
In reply to: tracking my forum posts/questionsClick on ‘Member’ under your login while viewing a post or on ‘View your profile’ in the Forums bar to go to your profile. It shows all your posts.
Forum: Fixing WordPress
In reply to: Static Post on top of each categoryI do something similar on my site https://bluegrassmiataclub.com/. See the Events->Event Talk page.
I used a custom field ‘category-to-show’ with a value of the category. Retrieve all posts in the category. Loop through displaying all that are ‘sticky’. Rewind the posts. Loop through a second time displaying all that are not ‘sticky’.
If you will send me an email with the About->Contact Us form from the site above, I will be happy to share the code with you.
Forum: Fixing WordPress
In reply to: Post content on page with new page template?Here is a starting point: https://codex.www.ads-software.com/The_Loop.
You should check the WP Codex first for queations, then post here if you can’t find an answer.
Forum: Fixing WordPress
In reply to: Trouble after install wordpress 2.8.6 on xamppSolution here: https://www.ads-software.com/support/topic/285337?replies=21.
Forum: Fixing WordPress
In reply to: Can I create Header image to change on each page?Do a plugin search for ‘image rotate’ and see https://codex.www.ads-software.com/Designing_Headers#Rotating_Header_Images.
Forum: Fixing WordPress
In reply to: Post content on page with new page template?You are welcome.
One minor point – I wouldn’t put any content in the template unless it is absolutely necessary. Put it in a post and retrieve the post in the template with a first loop. Then get the other posts in a second loop.
Forum: Fixing WordPress
In reply to: sql errorYour teacher_name needs to be in quotes. I believe this will work:
$wpdb->get_row("SELECT * FROM alb_teachers WHERE teacher_name = '$teacher_name'");
Forum: Fixing WordPress
In reply to: Can anyone translate this code?It looks like it is taking a string like:
<li part1><a href="part2">part3</a>
and changing it to:
<li part1><a href="part2"><span>part3</span></a>
I don’t see what purpose the span tags serve.You might try taking out the preg_replace to see what you get without it. Compare that to the results with it and you may get a better idea of what is going on.
<?php echo wp_list_pages('echo=0&orderby=name&exlude=181&title_li=&depth=1?'); ?>
Forum: Fixing WordPress
In reply to: Post content on page with new page template?I’m sorry, I don’t understand the question. My guess is that what you want is a template for your pages. See https://codex.www.ads-software.com/Pages, especially the section on ‘Page Templates’.
Forum: Fixing WordPress
In reply to: Post content on page with new page template?Sorry, I don’t think I can help with that.