charle97
Forum Replies Created
-
Forum: Themes and Templates
In reply to: List Titles within categoryi’d write a function/hack.
Forum: Plugins
In reply to: Nicer comment permalinksthat’s what i’m going to do.
Forum: Requests and Feedback
In reply to: Categories and Sectionsit seems like txp forces the use of a certain framework for designing. comparatively, wp is open and gives the user the free will to do as he pleases.
Forum: Plugins
In reply to: wp-recent-linksthe archives page when using the above method would be your category archive. example:
https://charles.gagalac.us/links/
it was made using a mod_rewrite rule that points to a separate template but references the category archive query.Forum: Themes and Templates
In reply to: Bullets points doing my head inadd the following to your css:
ul {
list-style-type:none;
margin:0px;
padding:0px;
}Forum: Fixing WordPress
In reply to: adsense fine @ x.com/index.php, incorrect @ x.com/make a basic index page with the ad code outside of wp and see what happens.
Forum: Fixing WordPress
In reply to: MT-Import questionsushubh is probably referring to 2fargon, another user.
Forum: Fixing WordPress
In reply to: Main story link point to an external URL?you’ll need to move all of your link type entries to category with id no 1. it’s usually called general.
then add the following functions to your my-hacks.php file.
function the_ID_number() {
global $id;
return $id;
}
function the_cat_id_number($postid=''){
global $tablepost2cat, $wpdb;
$catidno = $wpdb->get_var("SELECT category_id FROM $tablepost2cat WHERE post_id = '$postid' ");
return $catidno;
}
then you’ll need to adapt “the loop” to your template:
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<?php $postidno = the_ID_number(); $catsidno = the_cat_id_number($postidno); if ($catsidno == 1) { ?>
//code for link post
<?php } else { // prints posts without excluded cat ?>
//code for normal post
<?php } // closes printing entries with excluded cats ?>
<?php } } else { // end foreach, end if any posts ?>
Sorry, no posts matched your criteria.
<?php } ?>Forum: Fixing WordPress
In reply to: Main story link point to an external URL?i use an if statement to segregate my link entries, which are in a link category, from my normal entries, which are not in my link category.
Forum: Requests and Feedback
In reply to: Screw MT, look at Textpatterni can see ways of accomplishing what he wants in 1.2 with parent and child categories.
Forum: Requests and Feedback
In reply to: Screw MT, look at Textpatterni guess it depends on how one designs templates. i follow the model that i used with mt by separating a page into panels. then, within those panels, i use include statements to pull in stuff from other files that control the content of each section in the panel. if i ever need to change a section, all i need to do is edit a particular file without touching the main templates.
Forum: Plugins
In reply to: WP Approved Hacksi nominate randybrown to head the the wp approved hacks/plugins effort.
Forum: Plugins
In reply to: category functionswrite your own function to pull category ids. the_category_id function is trying to pull a post’s category id from a field that is apparently deprecated.
Forum: Fixing WordPress
In reply to: Individual posts pagemake the new page with the different column. then replace the index.php of the rewrite rule that controls your individual archive pages with the name of the new page.
Forum: Fixing WordPress
In reply to: Individual posts pagereplace the index.php portion of your rewrite rule with the name of your individual archive page file.