anandg
Forum Replies Created
-
Forum: Themes and Templates
In reply to: the_date is empty in a loopAi, you’re right. I didn’t read the intro but I’ve read the rest. But in the intro was the part that I needed.
Thanks for mentioning. I guess I have to read better.
It now works. I’m using:
<?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?>
Forum: Themes and Templates
In reply to: the_date is empty in a loopHi moshu,
I always have a look at the WordPress documentation first and if I still don’t succeed then I do an extended search in Google.
But it doesn’t work correctly. I use the following code:
<h3>Recent Articles</h3> <?php $recentPosts = new WP_Query("cat=3&showposts=10"); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_date('Y-m-d', '<strong>', '</strong>'); ?> <?php the_content(); ?> <?php endwhile; ?>
It shows all the posts from the category ‘news’ wich has the ID 3. But not all the posts show a date. The last one shows a date. Then the next 2 don’t have a date, the 4th post does have a date, but the 5th and 6th don’t have a date.
I can’t see where the problem lies. Should I be using a category template instead of a page template?
Forum: Themes and Templates
In reply to: is_home() is not workingYess, I found the solution!
https://www.bos89.nl/1197It’s a plugin that uses the is_frontpage() syntax and returns true if you’re at the homepage even if it’s a static front page.
Forum: Themes and Templates
In reply to: is_home() is not workingIf I use the “Posts Page” option in Options > Reading > Front page display then the is_home() works. But now my static home page is gone and is now using the index.php instead of the customized page I created.
Is there a way/hack/plugin I can use to use the static front page and still get is_home() to return true when I’m on the homepage (wich is showing the static front page)?
Forum: Fixing WordPress
In reply to: No “upload” and “browse all” option in the write post pageHere is the solution:
https://www.flickr.com/groups/tantannoodles/discuss/72157600220847581/?search=upload+disappearedIf you have version 2.2, 2.2.1 or 2.2.2 than change it respectively in the following code:
if (version_compare(get_bloginfo('version'), '2.1', '<')) {
Forum: Plugins
In reply to: FlickrRSS shows photos of other users instead of showing mineIf someone knows a solution I would love to hear it. For now I’m using the plugin anotherFlickr:
https://www.lukeh.com/?p=141Forum: Plugins
In reply to: Looking for Video Gallery PluginTry this one:
https://dev.vlowe.co.uk/?page_id=7For it to work you need a username from YouTube and video’s already uploaded. Then you need to get a Developer ID.
Next create a page and select the template “YouTube Gallery”.
Forum: Plugins
In reply to: REQ: Video Gallery that worksI have the same problem and I have searched all over the internet. Unfortunately I haven’t found a solution.
I would very much like to use TubePress, but it says it can’t activate the plugin because of a fatal error. I can’t find anything on the TubePress forum or any other sites.
I hope there is somebody out there who can help us.I’m using WordPress 2.2.
Forum: Fixing WordPress
In reply to: No “upload” and “browse all” option in the write post pageIt seems that on this post it is because of a Flickr Plugin. I also installed a Flickr plugin. I’m gonna check it out.
https://www.ads-software.com/support/topic/118120?replies=5Forum: Themes and Templates
In reply to: the_content() in single.post displays no contentI finally found it out myself.
I forgot to put the_content() in a loop.
That’s why it didn’t show any content.Forum: Fixing WordPress
In reply to: Error in SQL syntaxAh great, it worked!
Thanks a million.I just tried the code, but I don’t think it works. You can assign a page to a category, but you can’t see it anywhere. In the Manage Page section you can’t see which pages belong to which categories.
Hi e7, you said in a few earler posts:
add the following lines to your wp-admin/edit-page-form.php file in the right place:<fieldset id=”categorydiv” class=”dbx-box”>
<h3 class=”dbx-handle”><?php _e(‘Categories’) ?></h3>
<div class=”dbx-content”>
<p id=”jaxcat”>
<div id=”categorychecklist”><?php dropdown_categories(get_settings(‘default_category’)); ?></div></div>
</fieldset>This will give you the option of assigning the category of each individual page you create or edit.
But where do I add the mentioned code in the edit-page-form.php? What line number for example?
Forum: Fixing WordPress
In reply to: Problem with linking to postAh great, I created a single.php file with a loop and now I can see the content of the specified posts in the url.
Forum: Fixing WordPress
In reply to: Opening permalink doesn’t show content on pageThis url works and retrieves all the posts from the category
https://www.chrismochtar.nl/anand/rolandinus/index.php?cat=2But this permalink url doesn’t work:
https://www.chrismochtar.nl/anand/rolandinus/activiteiten/
(activiteiten has the category id 2)