wordyword
Forum Replies Created
-
Forum: Plugins
In reply to: [WP RSS Multi Importer] Show/hide excerpt functionality not working for meAha! A newer plugin version was released. I updated to your latest plugin…it seems to be working ok now. Will test further to verify and feedback if any further problems found. Thanks.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Show/hide excerpt functionality not working for meOk thanks, here’s the link. A test site, new WP install, no other plugins, barebones default theme.
Forum: Themes and Templates
In reply to: how to change font display in admin textarea code editor?Question was asked, a solution provided. It may help others in future. As for your negative attitude; I recommend daily vigorous exercise to relieve your pent up frustrations as an alternative to littering forums with unproductive rude comments. Don’t be one of those people. Honestly…
Forum: Themes and Templates
In reply to: how to change font display in admin textarea code editor?Thanks!
Forum: Plugins
In reply to: force tag and category page title to lowercase…Maybe try a force-lower case command or CSS text-transform: lowercase; (style) that you can add into the theme’s header.php where title is processed.
Forum: Themes and Templates
In reply to: how to change font display in admin textarea code editor?edit the file…wp-admin/css/theme-editor – line #2 and #3
Default values:
==========================================================
#template textarea {
font-family: Consolas, Monaco, Courier, monospace;
font-size: 12px;
width: 97%;
}Example – change the default font style or size as desired
============================================================
#template textarea {
font-family: verdana, arial, fixed, Consolas, Monaco;
font-size: 11px;
width: 97%;
}Forum: Themes and Templates
In reply to: Change font size in Admin visual text areaPossibly the tiny MCE editor CSS file? Or try finding the CSS file that controls it in /wp-admin/css
Forum: Themes and Templates
In reply to: how to change font display in admin textarea code editor?I think you mis-understand the question. This is a WordPress CSS issue, not related to theme. What I am looking for is the CSS setting/file to change the font in the TEXTAREA code editor window. This is the form area where you see code for the files (i.e. comments.php, etc). It is the same no matter what theme is activated, therefore leads one to believe it is a WordPress CSS setting.
Forum: Plugins
In reply to: How to get categories where term taxonomy is ‘my_custom_value’Update: I’m able to retrieve the category term ID numbers. Now I need to figure out how to retrieve the term names instead of the IDs. Here’s what the code result looks like:
displayterms = [“24″,”25”];
And here’s the code. Where do I need to change the following code so that names are retrieved instead of ID #’s?
$termquery = get_the_category (" SELECT $wpdb->name FROM terms WHERE $wpdb->term_taxonomy.taxonomy = 'my_custom_value' "); $displayterms = $wpdb->get_col($termquery['$name']); echo json_encode($displayterms);Forum: Plugins
In reply to: How to add autocomplete (autosuggest) to text input field?Thanks again. I’ve tried without success to figure out the code used in the PHP query to generate the results from the database. In the example PHP query/output file, the bird names appear in a list within PHP tags (i.e. “Great Bittern”=>”Botaurus stellaris”,
“Little Grebe”=>”Tachybaptus ruficollis”, etc) but I can’t figure the code used to generate the array/list from the database. Here’s what I have so far. Am I on the right track?<?php $q=$_GET["q"]; $con = mysql_connect('localhost', 'user', 'password'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("db_name", $con); $sql="SELECT * FROM user WHERE id = '".$q."'"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) //I'm lost at this point $q = strtolower($_REQUEST["q"]); if (!$q) return; $items = array(); foreach ($items as $key=>$value) { if (strpos(strtolower($key), $q) !== false) { echo "$key\n"; } } mysql_close($con); ?>Forum: Plugins
In reply to: How to add autocomplete (autosuggest) to text input field?Thanks again. I’ve tried without success to figure out the code used in the PHP query to generate the results from the database. In the example PHP query/output file, the bird names appear in a list within PHP tags (i.e. “Great Bittern”=>”Botaurus stellaris”,
“Little Grebe”=>”Tachybaptus ruficollis”, etc) but I can’t figure the code used to generate the array/list from the database. Here’s what I have so far. Am I on the right track?<?php
$q=$_GET[“q”];$con = mysql_connect(‘localhost’, ‘user’, ‘password’);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}mysql_select_db(“db_name”, $con);
$sql=”SELECT * FROM user WHERE id = ‘”.$q.”‘”;
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
//I’m lost at this point
$q = strtolower($_REQUEST[“q”]);
if (!$q) return;
$items = array();foreach ($items as $key=>$value) {
if (strpos(strtolower($key), $q) !== false) {
echo “$key\n”;
}
}
mysql_close($con);
?>Forum: Plugins
In reply to: How to add autocomplete (autosuggest) to text input field?I grasp how to implement the JS and CSS, but am still a little confused how to code the output xyz.php file. I don’t want to manually create results like the list of birds as shown in the example, but rather to have the list of results generated from the respective Post ID’s comments_content in WP database.
Forum: Plugins
In reply to: How to add autocomplete (autosuggest) to text input field?Thanks for the tip. I took a look at those pages, and understand how to load the script with wp_enqueue, but not sure exactly how to insert code so that it imports pre-existing comments from the WP database into the drop-down suggestions area. Here is the code from my template’s comments page. Is is where I should put the script’s commands? Please tell me how to modify if you can. Thanks!
<p>Reply <textarea name=”comment” id=”comment” cols=”45″ rows=”10″ tabindex=”4″></textarea></p>