luckdragon
Forum Replies Created
-
Forum: Hacks
In reply to: an issue with a wordpress plugin calling external shortcodesso, are you saying that you are trying to use other plugin’s shortcodes within your plugin?
if you are, then instead of doing [Rating] you should be doing:
<?php echo do_shortcode('[Rating]'); ?>Forum: Plugins
In reply to: Confused with this If Else statement for Custom FieldsForum: Hacks
In reply to: an issue with a wordpress plugin calling external shortcodesguess I’m confused, you said earlier that you made the plugin, so you control the shortcodes and how they act.. so what is the problem?
Forum: Hacks
In reply to: Please help understanding why use this instead ofboth are syntactically correct, as for processing time, it doesn’t make enough of a difference to mean anything, it’s probably done moreso for ease of code following, no other reason.
Forum: Plugins
In reply to: Confused with this If Else statement for Custom Fieldsif you click on “screen options” and check the box that says “extra fields”, it should be (I think)
Forum: Plugins
In reply to: Remove link to comments in dashboard for non-administratorsin your theme’s functions.php put the code located below:
all you have to do then is change “ishkibbibble” to whatever username you want to have access to everything
basically, what it does, is if the user isn’t the one defined, it removes the “right now” box, then creates a new one with all of the same information, excluding the “discussion” table.
Forum: Plugins
In reply to: Remove link to comments in dashboard for non-administratorsfrom the “right now” box, correct?
Forum: Plugins
In reply to: Remove link to comments in dashboard for non-administratorsdo you mean removing it off both the admin menu and the dashboard? (so there is no link to comments at all)?
Forum: Plugins
In reply to: Confused with this If Else statement for Custom Fieldsyou do realize that WP has custom fields built in now by default, don’t you?
Forum: Fixing WordPress
In reply to: insering database into a siteI doubt that you will find a plugin that you can just use to read a custom database, you would definitely have to have one built for you
Forum: Fixing WordPress
In reply to: Adding post author to date/comments lineglad I could help 🙂 remember to mark this topic as resolved 🙂
Forum: Plugins
In reply to: Confused with this If Else statement for Custom Fieldswhat is “key” in your get_post_meta?
Forum: Fixing WordPress
In reply to: wp_query (specific category & user)$getid = $posts[0]->post_author;
$author_id = get_the_author_meta(‘ID’,$getid);Forum: Plugins
In reply to: Confused with this If Else statement for Custom Fieldsthe way you have that written, it checks to see if photo1 is defined, if it is, it shows, it
then, is photo 2 defined, if yes, show it
then, is photo 3 defined, if yes, show it
then, is photo 4 defined, if yes, show it
then, is photo 5 defined, if yes, show it if photo 5 isn’t defined “NOTHING”if that’s what you’re trying to do, then you don’t need the }else{ line at all
also, if that’s what you’re trying to do, using an array might be easier
$cfield = array(); for ($i=1;$i<6;$i++) { $ok = get_post_meta($post->ID, 'photo'.$i, true ); if ($ok) $cfield[$i] = $ok; } if (count($cfield) > 0) { foreach ($cfield as $key => $val) { ?> <a href="<?echo $val ?>">Photo Source (<? echo $key ?>)</a> <? } } ?>Forum: Plugins
In reply to: Looking for a shopping cart plugin with an upload image featureno, it uses it’s own post types, however, there is an additional plugin called thecartpress front page or something like that that will do what you are looking for.