mtokoly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: place the_title inside the_contentfor the HTML
<img src="example.jpg" class="alignleft"> <h2>Post Title</h2> <p>Post Content</p>for the PHP
if (image is to be aligned left) { echo '<img src="example.jpg" class="alignleft">'; } elseif (image is to be aligned right) { echo '<img src="example.jpg" class="alignright">'; }and so on…
is there a way to use SimonJ’s function but at the same time distinguish between images that are to be aligned left/right/top/bottom??
my hair is now grey
Forum: Fixing WordPress
In reply to: place the_title inside the_contentSimonJ told me how to do EXACTLY what I needed and for that I fell very ashamed. I’m self-taught programmer and 90% of the time when you ask a question in a forum, you either get no answers at all or very rude ones.
I was on the defensive and was blinded by my anger, for that I am very sorry to all you guys.
SimonJ, your solution works like a dream, but the only problem I have now is that I do not know how to define whether the image should be aligned left/right/bottom/top.
uncrate.com & playgrounder.com have they style that I am going for.
Is there a way that I am not seeing on how to put it into an if/else statement??
example:
if (image is to be placed on the left side of the post) { echo 'class=alignleft'; }Forum: Fixing WordPress
In reply to: place the_title inside the_contentim sorry, im just getting very frustrated.
sorry t31os_
sorry simonj, ill try your solutionForum: Fixing WordPress
In reply to: place the_title inside the_contentyes “place the_title inside the_content” is not clear at all (Gay Smiley Face). Functions and tags are the same thing when the functions PRODUCE those tags, but thanks for unwittingly pointing that out.
Am I supposed to tell a client to insert [mm-insert-title before='<h2>’ after='</h2>’] everytime they post??
A custom layout? Because a BLOG cms will not let you change the layout of the BLOG’s post. Thats a joke. I’m just going to do what I should have done in the first place, use CI.
Thanks WordPress.
Forum: Fixing WordPress
In reply to: place the_title inside the_contentSimon,
When you insert an image in your post, it places the <img src=”example” /> tag inside you post.
Regular Post:
<p>The post text</p>Post with Image:
<p><img src=”example” />The post text</p>Forum: Fixing WordPress
In reply to: place the_title inside the_contentNo, t310s_ thats not what I asked for, please reread MY post. I am trying to rearrange the tags, not find some hack.
Thanks vtxyzzy for your answer. I find it completely ridiculous that one cannot cleanly edit the layout of the post (one of the biggest parts of the blog itself).
My guess is that you CANNOT cleanly edit the post and instead of saying something like “not possible, you have to find a workaround”, you get little a-hole moderators.
Example:
http://ww.wp.xz.cn/support/topic/307410?replies=2Did I hear a 9er in there?
Forum: Fixing WordPress
In reply to: place the_title inside the_contentthanks vtxyzzy.
but i dont think that will solve my problem. The <img> tag is inserted inside of the <p> tag. i.e. <p><img>some text</p>
is it possible to define the ‘some text’ part. to make myself clear, i would like to place my post title next to / below my picture just like on playgrounder.com and uncrate.com. if this is possible with only the use of css, that would be great,but i dont think that is possible either.
please help!
Forum: Fixing WordPress
In reply to: place the_title inside the_contentI think what I’m really trying to do is put the image before the title and text, for instance:
<div class=”entry”>
<img src=”example” />
<p><h2>Post Title</h2>The post text</p>
</div>I’m currently looking into writing an add_filter, but I don’t see how it will help.