cableghost
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeOkay, I should have tested the previous code on my example above, however, I just tried wrapping it around the complete paragraph for testing. So, I went back and just added it to the partial content to be in quotes, and the previous code worked. It wrapped the to-be quoted content in <q>, and the entire paragraph in <p>.
For inline, assuming partial of a paragraph, the following code works:
function quote_func($atts, $content = null) { return '<q>' . $content . '</q>'; } add_shortcode('inline-quotes', 'quote_func');One last thing…when I apply the shortcode via button, it only produces one [inline-quotes]; the end, [/inline-quotes], is not produced. I notice there is </q> added to the code above, but it does not seem to be functioning.
Thanks for the help.
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeYeah, much better, however, <p> should still wrap around the quoted text.
Using the example above again…
[inline-quotes]Content here.[/inline-quotes]
The page source result…
<q>Content here.</q>
<p>next paragraph</p>It should result in…
<p><q>Content here.</q></p>
<p>next paragraph</p>Forum: Fixing WordPress
In reply to: Add quotes using shortcodeThat’s how I use it, but it acts like there’s no content, like so…
[inline-quotes]Content here.[/inline-quotes]
The result…
“”
Content here.PS. I changed ‘quotes’ to ‘inline-quotes’
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeThank you…couple things.
There was a ‘ missing in your code…corrected code below.
function quote_func($content) { return '<q>' . $content . '</q>'; } add_shortcode('quote', 'quote_func');The function creates the shortcode, but when executed, it doesn’t wrap the text, it creates another empty segment, as such…
<p><q></p></p>I’ve tried to figure it out within the link you provided, but I can’t. Any ideas?
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeAs initially mentioned…
As far as why creating a shortcode…I can had one simple button to TinyMCE, then I can highlight the text and click the respective button to add the <q> brackets.
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeJust the italics
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeFor example, see the below. If I use a fair amount of quoting, the layout really looks garbled in blockquoting style, so I wish to elect using it inline.
HP Looks Panicky as It Dumps Valuable Mobile, Consumer Product … eweek.com: In August 2011, HP announced they were going to drop their consumer-based products, and focus on enterprise client market. Something to think about for future budgets. “Aug 20, 2011 … News Analysis: The first question that comes to mind as HP abruptly changes direction is what were they thinking? The second question has…”
Is there a way to use blockquotes inline??
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeOkay, say for a moment I go with blockquote, however, I want to use it inline; could someone provide me the css to allow blockquote to be inline and if possible, auto-add the curly q’s around the text?
Forum: Fixing WordPress
In reply to: Add quotes using shortcodeWell, blockquote is much different than <q> quotes, in terms of appearance, how search engines view it, and it is ‘block’, not inline.
Though I’m able to edit the robots.txt file, the contents of which do not seem to be applied to my pages.
When I view the DOM/Site info of a given page, I only see those index changes made by the plugin and not my added entries for disallowing bots, etc.
Any suggestions?
Forum: Fixing WordPress
In reply to: Present Content in Div based on Post CategoryI found a solution that works. I edited the following code and placed within div:
<?php if (in_category('1')) { ?> <img src="http://www.mysite.com/images/header1.jpg"> <?php } elseif (is_category('Category Name')) { ?> <img src="http://www.mysite.com/images/header1.jpg"> <?php } else { ?> <img src="http://www.mysite.com/images/header2.jpg"> <?php } ?>Found this code here: WordPress Tip: Swapping Images Based on Category
This is happening again, and does NOT occur when I disable the WPSEO plugin, regardless of any other plugin.
I have had to resort to saving a draft twice, before the changes do not occur.
-Scott
Forum: Fixing WordPress
In reply to: OL List AppearanceForum: Fixing WordPress
In reply to: Warning: Cannot modify header informationUpdate: a browser restart and the issue appears to be gone. I will mark this thread resolved in a few days if there’s no relapse.
Thanks @esmi for the input.
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header informationI decided to remove the php statement, and now I get the same error for line 99 of theme.editor.php
I see that line 99 has something to do with headers
header("Location: $location");However, I am unable to diagnosis the actual issue.
-Scott