TheHandOfCod
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Another multisite rewrite question (but other way around)In my (limited) experience of modifying htaccess files I have found it can be a bit of a black art to get the re-write rules correct. It might be worth taking a look at the WordPress WP Rewite API first to see if this meets your needs.
Forum: Fixing WordPress
In reply to: 2nd attempt to work with WP theme …I would suggest that the image you are uploading is not the size that the theme is expecting. So The image is being stretched to fit the space which is why it is blurry. On the theme where you upload the header page it will probably suggest an optimum size. If you can adjust your image to be this size, make it bigger in your case, then the image will probably not be blurred.
I think there may be a fundamental misunderstanding about what WordPress is. It looks like you have linked directly to each post which I think is why the look of the blog is different for each of the posts.
Normally a post is categorized in some way and then a page can be used to show a specific category of post.
So I would suggest that you :-
1. Create some categories for your posts
2. Create a menu and add the categories you have created.I think this may solve a number of the issues you have.
I would highly recommend you work your way through the documentation on here which I think will help you to achieve your goals.
Forum: Fixing WordPress
In reply to: Need to pull content from page with same name as usernameok so when the user first signs up I guess you are setting some uniques fields for the user either programatically or manually.
As part of the process used to save the unique data about the user you could use the acf function update_field($field_key, $value, $post_id) to store the page id against the username.
I think you would set up the field as per the documentation on the admin screen and then maybe assign the appropriate post id for the relevant page.
Then you could read the page id using the get_field function when the user is logged in.
Use the username as the key, and the page id as the value.
I am only reading from the docs here so you might get a better response from the Forum for that site.
Forum: Fixing WordPress
In reply to: Need to pull content from page with same name as usernameI do not think this code will work for two reasons
1. The single quotes around the code
$current_user->user_login
will pass that in as a string to the function and not the actual username. and
2. From the is_page documentation the function returns a true or false value and not the page id.
Would it be possible to use the ACF fields to store a page id against username so that when the user accesses their page you could simply retrieve the page id from the field.
I guess you must be creating the page somehow for the user in the first place so would it be possible to store a page id against the username at that point?
Forum: Fixing WordPress
In reply to: 2nd attempt to work with WP theme …First and foremost if you could provide a link to the website then it would be easier to see what you have done, and envisage what you are trying to achieve. After all a picture says a thousand words or so I am told ;-).
Also if you are worried about messing the theme up then take a copy of the theme and then change the copy.
To make a copy of the theme simply copy the theme folder, then go into the folder with the copy of the theme and change the text
Theme Name : Twentytwelve
to
Theme Name : xxxxxxxxxx
so you know which theme to activate from the dashboard.
Then you can change the copy all you want but you can still switch back to the Twenty Twelve theme if you so wish.
Forum: Fixing WordPress
In reply to: Next to top post loses styling and breaks layoutno problem ??
Forum: Fixing WordPress
In reply to: Next to top post loses styling and breaks layoutI’m guessing that the ‘Rioja’ description is the second post which is breaking the layout?
1. If you look at the HTML using fire bug or use chrome to view the page and use inspect element you will see the that the second post is not wrapped in a ‘post’ div like the first post. This will cause the layout to behave differently than you would expect. So something in the template is incorrect and is not rendering your posts HTML as you are expecting it to.
This is also causing issues with the pipes in the second post appearing under each other rather than being floated I think.
2. The element which has the float left on it (so that it sits nicely next to the aside) is embedded in an element which is not on the same level as the aside. I have not seen it done this way before so I am surprised this works. I’m not sure it would work for your second post even if the second post was wrapped in a ‘post’ div like the first post?
So I think there are a number of issues here. In my opinion the first place to start would be to fix the issue with the second post not appearing in a wrapped div with the same css classes as the first post. Once that has been fixed it may be easier to see where the other problems lie?
Forum: Fixing WordPress
In reply to: Use a post to redirect to a category archiveIn The Loop you can get the id of the post (the_id()), and use this to get the category that the post is in ( see get_the_category ).
Once you have the category you can get the category link, and then output this link in the template rather than the link for the post.
Forum: Themes and Templates
In reply to: Customized theme, images not positioningIs this still a problem? In truth other than what I have said above there is not much more help I can give, sorry ??
My advice would be to speak with the person who customised the template or ask for paid help from a WordPress template designer.
Forum: Themes and Templates
In reply to: Customized theme, images not positioningHardcoding each image would not help, and may cause other problems. To me it looks like the structure of the page needs to change to accomodate the image and still keep your buttons in the right place.
But I can see you have fixed the issue now anyway :-).
Forum: Themes and Templates
In reply to: Customized theme, images not positioningWith reference to the front page there are several issues here:-
1. The big GalaFilmEvents image is pushing the other elements in the p block so that they overflow the div and are therefore wrapping onto the next line, which is why you are having difficulting aligning them.
2. The more info image and RSVP button are in the same <p> element as each other, but a different <p> element to the other RSVP button. If you want all the buttons to line up I would suggest that they all need to be in the same block element (a p or div element) and the GalaFilm Events image needs to be in a different block level element.
3. You will then need to apply css to the block level element containing the buttons to display them in line and then float the buttons (not the containing element) to the left or right.
If you need to have the buttons centered then there are other css tricks you can do to achieve this.
Hope this helps
Forum: Themes and Templates
In reply to: 'cat=$function' in order to get posts from a category (loop)pleasure
Forum: Themes and Templates
In reply to: 'cat=$function' in order to get posts from a category (loop)Please could you provide the complete line of code in which
'cat=$conv[$fonciere][$currentpage]'
appears. It will help to solve the problem.Meanwhile I am guessing that this is in a WP_Query? If so then your call to your array will be treated as a string literal as you have written it above. i.e. WordPress will be looking for
cat=$conv[$fonciere][$currentpage]
.Try changing it to
'cat='.$conv[$fonciere][$currentpage]
instead and see if that helps. (note the position of the single quotes and the full stop).Forum: Fixing WordPress
In reply to: Widget Fatal Errormmm…that looks to me like you are getting a 404 error which translates into page not found for us normal folks ;-).
Have you deleted something vital?
You might need to re-install you WordPress installation from scratch.
Forum: Plugins
In reply to: Get data out of arraySo to me that looks like the way an array is stored in the options table in wordpress wp_options.
try something along the lines of
$event_attr = get_option( 'location' );
or maybe$event_attr = get_option( 'event_attributes' );
and then usevar_dump( $event_attr )
to see what the result is.