cybershot
Forum Replies Created
-
Forum: Plugins
In reply to: help with plugin developmentI am not sending the option to the database. It’s hard coded. I just need to figure out how to get the form to communicate with the get_option. The codex is zero help to me on this
Forum: Fixing WordPress
In reply to: help with first pluginnope, been there done that. it is the wrong kind of tutuorial. Yes it will get you part of the way there. Remember, the code I have shown you is just one version of many. It is only after searching the web that I decided to come here asking for help. I was actually just thinking about that tutorial as I was walking to my computer. So that is funny. I tried to use a filter to find the #wrapper and then use the javascript to hide it. But I am not sure that the php was communicating with my form. That is why the form has the alert() function to let me know that it is picking up the fact that one of the boxes is checked
Forum: Fixing WordPress
In reply to: help with first pluginyes, I know that it isn’t working because of the code. The codex isn’t helpful for me because it isn’t written for beginners. There is to much information spread out over to many places. To many links to click on that take you to another page that you have to read in order for the information on the last page to make sense.
I have checked all the documentation I can find. That is how I got as far as I did. I came in here to post to see if you can tell me what “hooks” I might be missing.
Forum: Plugins
In reply to: [Plugin: Sociable] problems with pluginUpdate to version 2.8.4
Forum: Fixing WordPress
In reply to: how to display category post onlyEDIT
The only thing left to do now is figure out how to get the next and previous buttons working for older and newer posts. When I tried to add them into that code, it crashed. I don’t know why. it errors out on an endif.
Forum: Fixing WordPress
In reply to: how to display category post onlyI know how to make custom pages. But that is not what I am trying to do here. I did finally figure it out thanks to google. just took a long time. Wasn’t sure if you could do this. I didn’t want to make a custom page. I wanted three of my categories to show up on the homepage in a custom box. There are three tabs. When you click the tab, the content for that category shows up in the box. Then you can click the title to go to the page to post your comment or do whatever, continue reading the post.
The issue was that when I posted to a category, it would also show up on the homepage in the regular post area, don’t want that. The fix came when I found a site showing how to make your own query post.<?php $recentPost = new WP_Query(); $recentPost->query('cat=26&showposts=3'); ?> <?php while ($recentPost->have_posts()) : $recentPost->the_post(); ?> <h3 id="proj-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3></a> <?php the_excerpt(); ?> <a class="detail" href="<?php the_permalink() ?>">continue reading</a> <?php edit_post_link('Edit', '<p>', '</p>'); ?> <?php endwhile; ?>
Now with this code, I could say show only category 26 and only show three titles and just the_excerpt() of the post. Then there is a button that says read more that you can click. I put this code in three files. blog.php, current-projects.php, and future-projects.php then I was able to call them from within the content box by just doing
`<?php include (‘blog.php’); ?>
Now when I click the tab, the category shows up that I want to see and nothing else.
Forum: Fixing WordPress
In reply to: how to display category post onlyI did exclude them. I am really close. Here is where I am at.
I created a file called blog.php in that file I put this
<?php query_posts('cat=26'); ?> <!-- Start the Loop. --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- The following tests if the current post is in category 3. --> <!-- If it is, the div box is given the CSS class "post-cat-three". --> <!-- Otherwise, the div box will be given the CSS class "post". --> <?php if ( in_category('3') ) { ?> <div class="post-cat-three"> <?php } else { ?> <div class="post"> <?php } ?> <!-- Display the Title as a link to the Post's permalink. --> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- Display the Time. --> <small><?php the_time('F jS, Y'); ?></small> <!-- Display the Post's Content in a div box. --> <div class="entry"> <?php the_content(); ?> </div> <!-- Display a comma separated list of the Post's Categories. --> <p class="postmetadata">Posted in <?php the_category(', '); ?></p> </div> <!-- closes the first div box --> <!-- Stop The Loop (but note the "else:" - see next line). --> <?php endwhile; else: ?> <!-- The very first "if" tested to see if there were any Posts to --> <!-- display. This "else" part tells what do if there weren't any. --> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; ?>
in the index.php file where I want the post to show up I put this
<?php include('blog.php'); ?>
Now the content box shows only the post made to the blog category, the current projects page shows only the post made to that category. the problem now is that the homepage shows only the category post as well. All the regular posts that are suppose to be there dissapeared. I used this code just before the loop in the index file for the main loop
<?php if (is_home()) { query_posts("cat=-24,-25,-26"); } ?>
Forum: Installing WordPress
In reply to: things are missing?discovered that there is a “disable visual editor” in the users area
Forum: Fixing WordPress
In reply to: comments not showing up in kubric themeI got the comments box to pop up by using just
<?php comments_template() ?>
but for some reason, it does not require the name and email addy as I set in the admin area.
Forum: Fixing WordPress
In reply to: comments not showing up in kubric themeHere is what I tried and it doesn’t work.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit', '', ' | '); ?> </div>
Forum: Fixing WordPress
In reply to: comments not showing up in kubric themeI tried that but it didn’t work. Does it need to be in the while loop?
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] help with slideshow problemthere is code that they neglected to show in order to get this working. In the end I got it to work by using the admin tools to add a slideshow to a page, the I copied the code from viewing the source and pasted it where I wanted the slideshow to show up. It’s working now
Forum: Plugins
In reply to: NextGen Gallery – Slideshow problemI tried all of your stuff and it still don’t work for me. I have everything in place. I got an error that said, gallery not found. But it is there.
Forum: Fixing WordPress
In reply to: help with slugs/%postname%/
I found that it is working, but wordpress added a topics to it. so it’s
https://www.mydomain.com/topics/postname rather thanhttps://www.mydomain.com/postname
is there a way around that?
Forum: Themes and Templates
In reply to: help with custom template codehttps://www.creativeeventsdesign.com/specialty-coin
https://www.creativeeventsdesign.com/contactthe images in the header aren’t showing up. I know i can get some of them to show using
<?php bloginfo('templat_directory')?>
but this isn’t working for the rollovers